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
f7c2e2f3
Commit
f7c2e2f3
authored
Sep 29, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改登陆配置
parent
f56a963d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
230 additions
and
76 deletions
+230
-76
UserException.php
application/exception/custom/UserException.php
+2
-1
UserService.php
application/services/user/UserService.php
+218
-75
application.ini
conf/application.ini
+10
-0
No files found.
application/exception/custom/UserException.php
View file @
f7c2e2f3
...
...
@@ -9,7 +9,7 @@ use App\Exception\BaseException;
class
UserException
extends
BaseException
{
protected
$base_code
=
Code
::
USUR
;
const
APP_ID_NULL
=
14
;
protected
$cus
=
[
0
=>
'code 无效'
,
1
=>
'获取openid失败'
,
...
...
@@ -25,5 +25,6 @@ class UserException extends BaseException
11
=>
'头像昵称更新失败'
,
12
=>
'绑定手机号保存失败'
,
13
=>
'请求太频繁,稍后重试'
,
self
::
APP_ID_NULL
=>
'AppId 不能为空'
,
];
}
\ No newline at end of file
application/services/user/UserService.php
View file @
f7c2e2f3
This diff is collapsed.
Click to expand it.
conf/application.ini
View file @
f7c2e2f3
...
...
@@ -21,6 +21,16 @@ idgen.key = "5cfdb867e96374c7883b31d6928cc4cb"
wechat.appid
=
"wx4e0d92499185fb74"
;
wechat.secret = "731bcf2f7ebb1ebddb677618c2008b25";
wechat.appid.merchant-pub-pin
=
"wx4e0d92499185fb74"
wechat.secret.merchant-pub-pin
=
"731bcf2f7ebb1ebddb677618c2008b25"
wechat.appid.merchant-pub-deliverer
=
"wx91042f2a75f8b994"
wechat.secret.merchant-pub-deliverer
=
"09d7ea5472d871b4b1a0f3100bdfe1c9"
wechat.appid.merchant-pub-idle
=
"wx4e0d92499185fb74"
wechat.secret.merchant-pub-idle
=
"731bcf2f7ebb1ebddb677618c2008b25"
[exception]
debug
=
false
...
...
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