From e88b62beecbe3d48f9e7ca125f2d66a6e04d30c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 30 Jun 2025 16:37:13 +0800 Subject: [PATCH] fix --- application/third_party/ctmobilefirst/models/api_model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/third_party/ctmobilefirst/models/api_model.php b/application/third_party/ctmobilefirst/models/api_model.php index 4b312680..768c2d45 100644 --- a/application/third_party/ctmobilefirst/models/api_model.php +++ b/application/third_party/ctmobilefirst/models/api_model.php @@ -632,6 +632,7 @@ class Api_model extends CI_Model { // 合并为逗号分隔的字符串,所有类型的字符串 $result_string = implode(',', $unique_values); + $result_string = trim($result_string, ','); // 去掉首尾的逗号 //return $result_string; $sql2 = " select SYC_SN, SYC2_CodeDiscribe @@ -816,7 +817,9 @@ class Api_model extends CI_Model { // 合并为逗号分隔的字符串,所有类型的字符串 $type_string = implode(',', $unique_values); - $extendType_string = implode(',', $unique_values2); + $type_string = trim($type_string, ','); // 去掉首尾的逗号 + $extendType_string = implode(',', $unique_values2); + $extendType_string = trim($extendType_string, ','); // 去掉首尾的逗号 $resultClass = new stdClass();