Commit ce3e9909 authored by zazaname's avatar zazaname

调试

parent 8936e652
...@@ -10,7 +10,7 @@ class Jiuzi implements ISdkFactory ...@@ -10,7 +10,7 @@ class Jiuzi implements ISdkFactory
{ {
// 登录接口 // 登录接口
protected $login_url = "https://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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment