|
@@ -375,9 +375,11 @@ class CollectorService implements CollectorServiceInterface
|
|
Rule::where(['id'=>$data['id']])->update(['status'=>2]);
|
|
Rule::where(['id'=>$data['id']])->update(['status'=>2]);
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
-
|
|
|
|
|
|
+ Rule::where(['id'=>$data['id']])->update(['status'=>1]);
|
|
$wecUrl = $info['first_url'];//'https://www.ndcpa.gov.cn/queryList';
|
|
$wecUrl = $info['first_url'];//'https://www.ndcpa.gov.cn/queryList';
|
|
$parames = json_decode($info['parameter'],true);
|
|
$parames = json_decode($info['parameter'],true);
|
|
|
|
+
|
|
|
|
+// var_dump($parames);die;
|
|
$parames['webSiteCode'] = [trim($parames['webSiteCode'], "[]")]; //['jbkzzx'];//
|
|
$parames['webSiteCode'] = [trim($parames['webSiteCode'], "[]")]; //['jbkzzx'];//
|
|
$parames['channelCode'] = [trim($parames['channelCode'], "[]")]; // ['c100008'];//
|
|
$parames['channelCode'] = [trim($parames['channelCode'], "[]")]; // ['c100008'];//
|
|
$other = [
|
|
$other = [
|
|
@@ -389,7 +391,7 @@ class CollectorService implements CollectorServiceInterface
|
|
var_dump("开始调用接口方法====",$parames);
|
|
var_dump("开始调用接口方法====",$parames);
|
|
// die;
|
|
// die;
|
|
$this->foreachCurl($wecUrl,$parames,$other);
|
|
$this->foreachCurl($wecUrl,$parames,$other);
|
|
-
|
|
|
|
|
|
+ Rule::where(['id'=>$data['id']])->update(['status'=>2]);
|
|
}
|
|
}
|
|
return Result::success([]);
|
|
return Result::success([]);
|
|
}
|
|
}
|