Commit f52ddb4a authored by zazaname's avatar zazaname

调试

parent 6a318dae
...@@ -21,7 +21,6 @@ class LoginController extends Controller ...@@ -21,7 +21,6 @@ class LoginController extends Controller
*/ */
public function createToken() public function createToken()
{ {
dingdingLog($_REQUEST);
$this->checkParam(['app_id','ver_info','ctype']); $this->checkParam(['app_id','ver_info','ctype']);
$data = $this->loginService->createToken($this->requestData); $data = $this->loginService->createToken($this->requestData);
return json($data); return json($data);
......
...@@ -31,6 +31,7 @@ class Jiuzi implements ISdkFactory ...@@ -31,6 +31,7 @@ class Jiuzi implements ISdkFactory
]; ];
//请求url,获取返回值 //请求url,获取返回值
$response = Requests::post($this->login_url,[],$postParam)->body; $response = Requests::post($this->login_url,[],$postParam)->body;
dingdingLog($response);
//$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