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

interface

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