底层微信接口免密登录

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

@@ -11,10 +11,10 @@ class FriendTaskController extends BaseController
* 获取添加好友记录列表
* @return \think\response\Json
*/
public function getlist($pageIndex,$pageSize,$authorization,$isJob = false)
public function getlist($pageIndex,$pageSize,$isJob = false)
{
// 获取授权token
$authorization = !empty($authorization) ? $authorization : trim($this->request->header('authorization', ''));
$authorization = trim($this->request->header('authorization', $this->authorization));
if (empty($authorization)) {
if($isJob){
return json_encode(['code'=>500,'msg'=>'缺少授权信息']);
@@ -68,7 +68,7 @@ class FriendTaskController extends BaseController
public function addFriendTask()
{
// 获取授权token
$authorization = trim($this->request->header('authorization', ''));
$authorization = trim($this->request->header('authorization', $this->authorization));
if (empty($authorization)) {
return errorJson('缺少授权信息');
}