底层微信接口免密登录

This commit is contained in:
Ghost
2025-04-09 14:45:27 +08:00
parent 282a301eeb
commit ecf7024fcb
20 changed files with 158 additions and 103 deletions

View File

@@ -105,7 +105,7 @@ class UserController extends BaseController
{
$grant_type = $this->request->param('grant_type', 'refresh_token');
$refresh_token = $this->request->param('refresh_token', '');
$authorization = $this->request->header('authorization', '');
$authorization = $this->request->header('authorization', $this->authorization);
if (empty($grant_type) || empty($authorization)) {
return errorJson('参数错误');
@@ -144,7 +144,7 @@ class UserController extends BaseController
*/
public function getAccountInfo()
{
$authorization = trim($this->request->header('authorization', ''));
$authorization = trim($this->request->header('authorization', $this->authorization));
if (empty($authorization)) {
return errorJson('缺少授权信息');
}
@@ -209,7 +209,7 @@ class UserController extends BaseController
return $params;
}
$authorization = trim($this->request->header('authorization', ''));
$authorization = trim($this->request->header('authorization', $this->authorization));
if (empty($authorization)) {
return errorJson('缺少授权信息');
}
@@ -244,7 +244,7 @@ class UserController extends BaseController
*/
public function logout()
{
$authorization = trim($this->request->header('authorization', ''));
$authorization = trim($this->request->header('authorization', $this->authorization));
if (empty($authorization)) {
return errorJson('缺少授权信息');
}