作者 lyh

gx

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