正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -335,21 +335,20 @@ class ComController extends BaseController | @@ -335,21 +335,20 @@ class ComController extends BaseController | ||
| 335 | */ | 335 | */ |
| 336 | public function recommendedPurchaser(){ | 336 | public function recommendedPurchaser(){ |
| 337 | $this->param['keyword'] = 'led'; | 337 | $this->param['keyword'] = 'led'; |
| 338 | - $url = 'https://admin.hagro.cn/api/company_list'; | 338 | + $url = 'https://beta.hagro.cn/api/company_list'; |
| 339 | +// $url = 'https://admin.hagro.cn/api/company_list'; | ||
| 339 | $data = [ | 340 | $data = [ |
| 340 | 'prod_desc'=>$this->param['keyword'], | 341 | 'prod_desc'=>$this->param['keyword'], |
| 341 | 'total'=>$this->param['now'] ?? 10, | 342 | 'total'=>$this->param['now'] ?? 10, |
| 342 | ]; | 343 | ]; |
| 343 | arsort($data); | 344 | arsort($data); |
| 344 | $token = 'company_list+'.date('Y-m-d').'+'.http_build_query($data); | 345 | $token = 'company_list+'.date('Y-m-d').'+'.http_build_query($data); |
| 345 | -// $token = hash('sha256',); | ||
| 346 | $param = [ | 346 | $param = [ |
| 347 | 'prod_desc'=>$this->param['keyword'], | 347 | 'prod_desc'=>$this->param['keyword'], |
| 348 | - 'token'=>Hash::make($token), | 348 | + 'token'=>md5($token), |
| 349 | 'total'=>$this->param['now'] ?? 10, | 349 | 'total'=>$this->param['now'] ?? 10, |
| 350 | ]; | 350 | ]; |
| 351 | $lists = http_post($url,$param); | 351 | $lists = http_post($url,$param); |
| 352 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(Hash::make($token), true) . PHP_EOL, FILE_APPEND); | ||
| 353 | $this->response('success',Code::SUCCESS,$lists); | 352 | $this->response('success',Code::SUCCESS,$lists); |
| 354 | } | 353 | } |
| 355 | } | 354 | } |
-
请 注册 或 登录 后发表评论