Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
075d8d456bbb8143aee9673f0f853f5b5f49a224
1 parent
cc3f7cd8
PC的注册添加clientype=web
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
library/LibModels/Web/Passport/RegData.php
library/LibModels/Web/Passport/RegData.php
View file @
075d8d4
...
...
@@ -159,11 +159,14 @@ class RegData
*/
public
static
function
regMobile
(
$area
,
$mobile
,
$password
)
{
$clientType
=
'web'
;
$param
=
Yohobuy
::
param
();
$param
[
'method'
]
=
'app.passport.register'
;
$param
[
'area'
]
=
$area
;
$param
[
'profile'
]
=
$mobile
;
$param
[
'password'
]
=
$password
;
$param
[
'client_type'
]
=
$clientType
;
$param
[
'private_key'
]
=
Yohobuy
::
$privateKeyList
[
$clientType
];
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
post
(
Yohobuy
::
API_URL
,
$param
);
...
...
Please
register
or
login
to post a comment