rkljw há 6 meses atrás
pai
commit
3e8c369fb3
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      app/JsonRpc/CollectorService.php

+ 4 - 2
app/JsonRpc/CollectorService.php

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