正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论