正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -117,7 +117,9 @@ class ProjectCountryLogic extends BaseLogic | @@ -117,7 +117,9 @@ class ProjectCountryLogic extends BaseLogic | ||
| 117 | protected function countrySortFormat($country_sort){ | 117 | protected function countrySortFormat($country_sort){ |
| 118 | $webLanguageModel = new WebLanguage(); | 118 | $webLanguageModel = new WebLanguage(); |
| 119 | $idArr = $webLanguageModel->selectField(['id'=>['not in',explode(',',$country_sort)]],'id'); | 119 | $idArr = $webLanguageModel->selectField(['id'=>['not in',explode(',',$country_sort)]],'id'); |
| 120 | - $countryStr = $country_sort.','.implode(',',$idArr); | ||
| 121 | - return $countryStr; | 120 | + if(!empty($idArr)){ |
| 121 | + $country_sort = $country_sort.','.implode(',',$idArr); | ||
| 122 | + } | ||
| 123 | + return $country_sort; | ||
| 122 | } | 124 | } |
| 123 | } | 125 | } |
-
请 注册 或 登录 后发表评论