Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
6eb76cd0
Commit
6eb76cd0
authored
Aug 24, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改文案
parent
a547c6db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
UserException.php
application/exception/custom/UserException.php
+1
-0
User.php
application/modules/User/controllers/User.php
+3
-0
No files found.
application/exception/custom/UserException.php
View file @
6eb76cd0
...
...
@@ -21,5 +21,6 @@ class UserException extends BaseException
7
=>
'手机号获取失败'
,
8
=>
'绑定手机号失败'
,
9
=>
'该手机号已绑定其他用户不能重复绑定'
,
10
=>
'mysql 异常'
,
];
}
\ No newline at end of file
application/modules/User/controllers/User.php
View file @
6eb76cd0
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment