作者 lyh

gx

@@ -59,7 +59,7 @@ class RecommendedSuppliers extends Command @@ -59,7 +59,7 @@ class RecommendedSuppliers extends Command
59 if(empty($info)){ 59 if(empty($info)){
60 continue; 60 continue;
61 } 61 }
62 - $keywordInfo = $this->getPurchaser($info['title'] = 'led'); 62 + $keywordInfo = $this->getPurchaser($info['title']);
63 if($keywordInfo !== false){ 63 if($keywordInfo !== false){
64 continue; 64 continue;
65 } 65 }
@@ -85,11 +85,12 @@ class RecommendedSuppliers extends Command @@ -85,11 +85,12 @@ class RecommendedSuppliers extends Command
85 public function savePurchaser($project_id,$keyword,$row = 10){ 85 public function savePurchaser($project_id,$keyword,$row = 10){
86 $url = 'https://admin.hagro.cn/api/company_list'; 86 $url = 'https://admin.hagro.cn/api/company_list';
87 $data = [ 87 $data = [
88 - 'prod_desc'=>$keyword, 88 + 'prod_desc'=>$keyword = 'led',
89 'total'=>$row ?? 10, 89 'total'=>$row ?? 10,
90 ]; 90 ];
91 arsort($data); 91 arsort($data);
92 $token = 'company_list+'.date('Y-m-d').'+'.http_build_query($data); 92 $token = 'company_list+'.date('Y-m-d').'+'.http_build_query($data);
  93 + echo date('Y-m-d H:i:s') . '加密token:'.md5($token) . PHP_EOL;
93 $param = [ 94 $param = [
94 'prod_desc'=>$keyword, 95 'prod_desc'=>$keyword,
95 'token'=>md5($token), 96 'token'=>md5($token),