Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fusionapi
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
林洽文
fusionapi
Commits
ce3e9909
Commit
ce3e9909
authored
May 05, 2023
by
zazaname
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试
parent
8936e652
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Jiuzi.php
app/Http/InterfaceClass/SdkImpl/Jiuzi.php
+3
-4
No files found.
app/Http/InterfaceClass/SdkImpl/Jiuzi.php
View file @
ce3e9909
...
@@ -10,7 +10,7 @@ class Jiuzi implements ISdkFactory
...
@@ -10,7 +10,7 @@ class Jiuzi implements ISdkFactory
{
{
// 登录接口
// 登录接口
protected
$login_url
=
"http
s://h5sdk.snkad.com.cn
/auth/checktoken"
;
protected
$login_url
=
"http
://dev-h5sdk.humaiyouxi.com
/auth/checktoken"
;
/**
/**
* 登录
* 登录
...
@@ -21,7 +21,7 @@ class Jiuzi implements ISdkFactory
...
@@ -21,7 +21,7 @@ class Jiuzi implements ISdkFactory
*/
*/
public
function
login
(
$verInfo
,
$gameInfo
,
$request
)
:
array
public
function
login
(
$verInfo
,
$gameInfo
,
$request
)
:
array
{
{
$ver_info
=
json_decode
(
$request
[
'ver_info'
],
true
)
;
$ver_info
=
$request
[
'ver_info'
]
;
//获取请求参数
//获取请求参数
$postParam
=
[
$postParam
=
[
'uid'
=>
$ver_info
[
'uid'
],
'uid'
=>
$ver_info
[
'uid'
],
...
@@ -30,9 +30,8 @@ class Jiuzi implements ISdkFactory
...
@@ -30,9 +30,8 @@ class Jiuzi implements ISdkFactory
'version'
=>
$request
[
'unionId'
]
??
1
,
'version'
=>
$request
[
'unionId'
]
??
1
,
];
];
//请求url,获取返回值
//请求url,获取返回值
var_dump
(
$postParam
);
$response
=
Requests
::
post
(
$this
->
login_url
,[],
$postParam
)
->
body
;
$response
=
Requests
::
post
(
$this
->
login_url
,[],
$postParam
)
->
body
;
p
(
$response
);
p
(
json_decode
(
$response
,
true
)
);
//$response = '{"message":"ok","statusCode":200,"data":{"partnerid":"own","user_id":34,"openid":"qwewqqwe","age":0}}';
//$response = '{"message":"ok","statusCode":200,"data":{"partnerid":"own","user_id":34,"openid":"qwewqqwe","age":0}}';
//是否验证成功
//是否验证成功
$response_arr
=
json_decode
(
$response
,
true
);
$response_arr
=
json_decode
(
$response
,
true
);
...
...
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