diff --git a/application/third_party/ctmobilefirst/models/api_model.php b/application/third_party/ctmobilefirst/models/api_model.php index 768c2d45..1fc16118 100644 --- a/application/third_party/ctmobilefirst/models/api_model.php +++ b/application/third_party/ctmobilefirst/models/api_model.php @@ -765,9 +765,9 @@ class Api_model extends CI_Model { $sql = " SELECT DISTINCT PAG_Type ,PAG_ExtendType FROM dbo.BIZ_PackageInfo P1 INNER JOIN dbo.BIZ_PackageInfo2 p2 ON P1.PAG_SN = p2.PAG2_PAG_SN - WHERE (pag_dei_sn= 25 ) + WHERE (pag_dei_sn= ".$this->dei_sn.") AND (p2.PAG2_Check = 2) - AND (PAG2_LGC = 107) + AND (PAG2_LGC = ".$this->CTLGC.") and PAG_Code in ( SELECT convert(varchar(100),( SELECT TOP 1 im_value FROM information_ct.dbo.infoMetas @@ -790,22 +790,15 @@ class Api_model extends CI_Model { // 分割逗号分隔的值 $values = explode(',', $column_data); // 去除每个值的空白字符 - $values = array_map('trim', $values); - //去掉收尾逗号 - $values = array_map(function($item) { - return trim($item, ','); - }, $values); + $values = array_map('trim', $values); // 合并到总数组 $type_values = array_merge($type_values, $values); $column_data2 = $row['PAG_ExtendType']; // 分割逗号分隔的值 - $values2 = explode(',', $column_data); - $values2 = array_map(function($item) { - return trim($item, ','); - }, $values2); + $values2 = explode(',', $column_data2); // 去除每个值的空白字符 - $values2 = array_map('trim', $values); + $values2 = array_map('trim', $values2); // 合并到总数组 $extendType_values = array_merge($extendType_values, $values2); } @@ -826,7 +819,7 @@ class Api_model extends CI_Model { $sql2 = " select SYC_SN, SYC2_CodeDiscribe from SystemCode inner join SystemCode2 on SYC_SN = SYC2_SYC_SN - where SYC_Type=6 and SYC2_LGC=".$this->CTLGC." and SYC2_CodeDiscribe>'' and SYC_SN in (".$type_string.") "; + where SYC_Type=35 and SYC2_LGC=".$this->CTLGC." and SYC2_CodeDiscribe>'' and SYC_SN in (".$type_string.") "; $query = $this->HT->query($sql2); @@ -839,7 +832,7 @@ class Api_model extends CI_Model { $sql3 = " select SYC_SN, SYC2_CodeDiscribe from SystemCode inner join SystemCode2 on SYC_SN = SYC2_SYC_SN - where SYC_Type=6 and SYC2_LGC=".$this->CTLGC." and SYC2_CodeDiscribe>'' and SYC_SN in (".$extendType_string.") "; + where SYC_Type=39 and SYC2_LGC=".$this->CTLGC." and SYC2_CodeDiscribe>'' and SYC_SN in (".$extendType_string.") "; $query = $this->HT->query($sql3); if ($query->num_rows()>0){