作者 郭文星

312

... ... @@ -58,8 +58,12 @@ class Index extends Api
];
$res =HttpHelper::post($loginurl,$logindata);
$jsonlogin=json_decode($res,true);
print_r($jsonlogin);return ;
return $this->success($jsondata['msg'],$jsondata['data']);
if($jsonlogin['code']==200){
return $this->success($jsonlogin['msg'],$jsonlogin['data']);
}else{
return $this->error("请求失败");
}
}else{
return $this->error("请求失败");
}
... ...