From 712a7b2d71b2feaf92f5cc77209ea79c17f037c1 Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Tue, 13 Oct 2020 19:37:46 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E7=BB=86=E8=8A=82=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/ThirdLogin.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controller/admin/ThirdLogin.php b/app/controller/admin/ThirdLogin.php index dd66bf7..5367e2e 100644 --- a/app/controller/admin/ThirdLogin.php +++ b/app/controller/admin/ThirdLogin.php @@ -26,8 +26,8 @@ class ThirdLogin extends Base { * @var array */ private $qqConfig = [ - 'appId' => '', - 'appSecret' => '', + 'appId' => '101461699', + 'appSecret' => '52076b6d50c1fbdf59ac7b8a7404066b', 'redirectUri' => 'https://admin.apiadmin.org/#/login/qq' ]; @@ -45,8 +45,8 @@ class ThirdLogin extends Base { * @var array */ private $wxOpenConfig = [ - 'appId' => '', - 'appSecret' => '', + 'appId' => 'wxa886c4bafd5316f6', + 'appSecret' => 'e7ea7c9ed3d7544fc6d791d7cdaff5d4', 'redirectUri' => 'https://admin.apiadmin.org/#/login/wx' ]; @@ -305,7 +305,7 @@ class ThirdLogin extends Base { 'nickname' => $userDetail['nickname'], 'username' => 'ApiAdmin_qq_' . Strs::randString(8), 'openid' => $openid, - 'create_ip' => request()->ip(1), + 'create_ip' => sprintf("%u", ip2long($this->request->ip())), 'status' => 1, 'create_time' => time(), 'password' => Tools::userMd5('ApiAdmin')