rkljw 6 luni în urmă
părinte
comite
3e8c369fb3
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  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([]);
     }