底层微信接口免密登录

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

@@ -20,7 +20,7 @@ class StatsController extends BaseController
*/
public function basicData()
{
$authorization = trim($this->request->header('authorization', ''));
$authorization = trim($this->request->header('authorization', $this->authorization));
if (empty($authorization)) {
return errorJson('缺少授权信息');
}
@@ -46,7 +46,7 @@ class StatsController extends BaseController
from to 时间 当lidu为 0时2025-03-12 09:54:42 当lidu为 1时2025-03-12 当lidu为 2时2025-03
*/
$authorization = trim($this->request->header('authorization', ''));
$authorization = trim($this->request->header('authorization', $this->authorization));
$lidu = trim($this->request->param('lidu', ''));
$from = trim($this->request->param('from', ''));
$to = trim($this->request->param('to', ''));