作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

... ... @@ -92,7 +92,7 @@ class LoginController extends HomeBaseController{
try{
Db::name('users')->where('open_id',$openid)->update(['phone'=>$phone]);
}catch (\Exception $exception){
$this->apiResponse(200,'error:'.$exception->getMessage());
$this->apiResponse(302,'error:'.$exception->getMessage());
}
$this->apiResponse(200,'success',['users_id'=>$users['id'],'type'=>1,'is_use'=>$users['is_use']]);
}
... ...