作者 lyh

gx

@@ -99,6 +99,7 @@ class RecommendedSuppliers extends Command @@ -99,6 +99,7 @@ class RecommendedSuppliers extends Command
99 $res = http_post($url,json_encode($param)); 99 $res = http_post($url,json_encode($param));
100 echo date('Y-m-d H:i:s') . json_encode($res) . PHP_EOL; 100 echo date('Y-m-d H:i:s') . json_encode($res) . PHP_EOL;
101 if(!empty($res) && $res['code'] == 200 && !empty($res['data'])){ 101 if(!empty($res) && $res['code'] == 200 && !empty($res['data'])){
  102 + //保存多条数据
102 $saveData = [ 103 $saveData = [
103 'project_id'=>$project_id, 104 'project_id'=>$project_id,
104 'keyword'=>$keyword, 105 'keyword'=>$keyword,
@@ -109,4 +110,15 @@ class RecommendedSuppliers extends Command @@ -109,4 +110,15 @@ class RecommendedSuppliers extends Command
109 } 110 }
110 return true; 111 return true;
111 } 112 }
  113 +
  114 + /**
  115 + * @remark :保存供应商详情
  116 + * @name :savePurchaserInfo
  117 + * @author :lyh
  118 + * @method :post
  119 + * @time :2024/5/29 16:38
  120 + */
  121 + public function savePurchaserInfo(){
  122 +
  123 + }
112 } 124 }
@@ -176,9 +176,6 @@ class ProjectLogic extends BaseLogic @@ -176,9 +176,6 @@ class ProjectLogic extends BaseLogic
176 * @time :2023/8/30 12:14 176 * @time :2023/8/30 12:14
177 */ 177 */
178 public function saveProject($param){ 178 public function saveProject($param){
179 - if($param['type'] == Project::TYPE_ONE){  
180 - $param['serve_id'] = 9;  
181 - }  
182 if((($param['type'] == Project::TYPE_TWO) || ($param['type'] == Project::TYPE_THREE)) && empty($param['uptime'])){ 179 if((($param['type'] == Project::TYPE_TWO) || ($param['type'] == Project::TYPE_THREE)) && empty($param['uptime'])){
183 $param['uptime'] = date('Y-m-d H:i:s'); 180 $param['uptime'] = date('Y-m-d H:i:s');
184 } 181 }