合并分支 'lyh-server' 到 'master'
gx推荐供应商 查看合并请求 !1883
正在显示
1 个修改的文件
包含
2 行增加
和
4 行删除
| @@ -170,10 +170,8 @@ class RecommendedSuppliers extends Command | @@ -170,10 +170,8 @@ class RecommendedSuppliers extends Command | ||
| 170 | ]; | 170 | ]; |
| 171 | $purchaserModel = new Purchaser(); | 171 | $purchaserModel = new Purchaser(); |
| 172 | $purchaserModel->add($saveData); | 172 | $purchaserModel->add($saveData); |
| 173 | - if(isset($res['code']) && $res['code'] == 200){ | ||
| 174 | - if(!empty($res['data'])){ | ||
| 175 | - $this->savePurchaserInfo($project_id,$keyword,$res['data']); | ||
| 176 | - } | 173 | + if(isset($res['code']) && $res['code'] == 200 && !empty($res['data'])){ |
| 174 | + $this->savePurchaserInfo($project_id,$keyword,$res['data']); | ||
| 177 | }else{ | 175 | }else{ |
| 178 | echo '未正常返回数据,跳过项目'.PHP_EOL; | 176 | echo '未正常返回数据,跳过项目'.PHP_EOL; |
| 179 | } | 177 | } |
-
请 注册 或 登录 后发表评论