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
50172c97
Commit
50172c97
authored
Sep 24, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:起手登陆
parent
a4899e40
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
206 additions
and
67 deletions
+206
-67
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
+186
-67
application.ini
conf/application.ini
+4
-0
No files found.
application/exception/custom/UserException.php
View file @
50172c97
...
...
@@ -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 @
50172c97
...
...
@@ -33,6 +33,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获取生活号信息
...
...
application/services/user/UserService.php
View file @
50172c97
This diff is collapsed.
Click to expand it.
conf/application.ini
View file @
50172c97
...
...
@@ -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