...
|
...
|
@@ -30,8 +30,8 @@ class User extends Api |
|
|
|
|
|
//获取token
|
|
|
public function tokenLogin(){
|
|
|
$appKey = config("site.appKey");
|
|
|
$appSecret = config("site.appSecret");
|
|
|
$appKey ="waterPro_54989312";
|
|
|
$appSecret ="bef381707451606b34c1f9b4b18bd5d7";
|
|
|
$url="/api/access_token";
|
|
|
$postdata=[
|
|
|
"appKey"=>$appKey,
|
...
|
...
|
@@ -42,7 +42,7 @@ class User extends Api |
|
|
if($jsondata['code']==200){
|
|
|
return $jsondata['data'];
|
|
|
}else{
|
|
|
return $this->error("请求失败");
|
|
|
return $this->error("请求失败".$jsondata['msg'],$jsondata['data']);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|