eee
This commit is contained in:
+18
-1
@@ -25,7 +25,24 @@ class Account extends SmallProgram
|
||||
$param['js_code'] = $code;
|
||||
$param['grant_type'] = 'authorization_code';
|
||||
|
||||
return $this->get('/sns/jscode2session', $param);
|
||||
return $this->get('api.q.qq.com', '/sns/jscode2session', $param);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $code
|
||||
* @return Result
|
||||
*/
|
||||
public function appLogin(string $code): Result
|
||||
{
|
||||
$param['appid'] = $this->payConfig->appId;
|
||||
$param['secret'] = $this->payConfig->appSecret;
|
||||
$param['js_code'] = $code;
|
||||
$param['grant_type'] = 'authorization_code';
|
||||
|
||||
$this->host = 'graph.qq.com';
|
||||
|
||||
return $this->get('api.q.qq.com', '/user/get_user_info', $param);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user