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
127733f3
Commit
127733f3
authored
Sep 24, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Plain Diff
update:修改登陆
parents
b00b5b3f
8f0dc1ea
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
210 additions
and
63 deletions
+210
-63
UserException.php
application/exception/custom/UserException.php
+1
-0
CommonService.php
application/services/common/CommonService.php
+15
-0
UserService.php
application/services/user/UserService.php
+190
-63
application.ini
conf/application.ini
+4
-0
No files found.
application/exception/custom/UserException.php
View file @
127733f3
...
...
@@ -25,5 +25,6 @@ class UserException extends BaseException
11
=>
'头像昵称更新失败'
,
12
=>
'绑定手机号保存失败'
,
13
=>
'请求太频繁,稍后重试'
,
14
=>
'手机号格式错误'
,
];
}
\ No newline at end of file
application/services/common/CommonService.php
View file @
127733f3
...
...
@@ -34,6 +34,21 @@ class CommonService
return
[];
}
public
static
function
activateDeliverer
(
$params
)
{
$url
=
config
(
'interface'
,
'order.deliverer.activate_deliverer'
);
if
(
empty
(
$url
)){
throw
new
InterfaceException
([
'cus'
=>
0
]);
}
$res
=
(
new
Request
())
->
post
(
$url
,
$params
);
if
(
$res
[
'code'
]
==
0
&&
isset
(
$res
[
'response'
]))
{
return
!
empty
(
$res
[
'response'
][
'result'
])
?
$res
[
'response'
][
'result'
]
:
[];
}
return
[];
}
/**
* 通过生活号id获取生活号信息
* life_account_id = [] 数组形式传递
...
...
application/services/user/UserService.php
View file @
127733f3
This diff is collapsed.
Click to expand it.
conf/application.ini
View file @
127733f3
...
...
@@ -22,6 +22,10 @@ wechat.appid = "wx4e0d92499185fb74";
wechat.secret = "731bcf2f7ebb1ebddb677618c2008b25";
deliverer.wechat.appid
=
"wx91042f2a75f8b994"
;
deliverer.wechat.secret = "09d7ea5472d871b4b1a0f3100bdfe1c9";
[exception]
debug
=
false
exception.user.code
=
-1
...
...
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