作者 郭文星

1231

... ... @@ -182,7 +182,8 @@ class Index extends Api
$token=$this->token;
$url="http://121.37.218.20:9011/data_api/v1/insListAll";
//$token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjE5OTY5MTA2NzEwIiwicGFzc3dvcmQiOiJhMGUxNWM0NDRmOGNiY2NiNTAwM2U1MDk5OGI2OGZhNyIsImV4cCI6MTczMTY2ODA5MSwiaXNzIjoidWltcyJ9.W3RBwrFdidL9ERykKC_gHtjp911xrkNvUKglSes1w7c";
$res =HttpHelper::getheader($url,"","",$token);
$data=["cat"=>0];
$res =HttpHelper::getheader($url,$data,"",$token);
$res=json_decode($res,true);
return $this->success($res['message'],$res['data']);
}
... ...