Commit 6eb76cd0 authored by jianghaiming's avatar jianghaiming

update:修改文案

parent a547c6db
......@@ -21,5 +21,6 @@ class UserException extends BaseException
7 => '手机号获取失败',
8 => '绑定手机号失败',
9 => '该手机号已绑定其他用户不能重复绑定',
10 => 'mysql 异常',
];
}
\ No newline at end of file
......@@ -33,6 +33,9 @@ class UserController extends Base
{
$params = $this->params;
$user = UserService::userWechatBind($params);
if( $user === false ) {
throw new UserException(['cus' => 10]);
}
$userInfo['result'] = $user;
$this->success($userInfo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment