modified 细节修复

This commit is contained in:
zhaoxiang 2020-10-13 19:37:46 +08:00
parent e2c270392e
commit 712a7b2d71

View File

@ -26,8 +26,8 @@ class ThirdLogin extends Base {
* @var array * @var array
*/ */
private $qqConfig = [ private $qqConfig = [
'appId' => '', 'appId' => '101461699',
'appSecret' => '', 'appSecret' => '52076b6d50c1fbdf59ac7b8a7404066b',
'redirectUri' => 'https://admin.apiadmin.org/#/login/qq' 'redirectUri' => 'https://admin.apiadmin.org/#/login/qq'
]; ];
@ -45,8 +45,8 @@ class ThirdLogin extends Base {
* @var array * @var array
*/ */
private $wxOpenConfig = [ private $wxOpenConfig = [
'appId' => '', 'appId' => 'wxa886c4bafd5316f6',
'appSecret' => '', 'appSecret' => 'e7ea7c9ed3d7544fc6d791d7cdaff5d4',
'redirectUri' => 'https://admin.apiadmin.org/#/login/wx' 'redirectUri' => 'https://admin.apiadmin.org/#/login/wx'
]; ];
@ -305,7 +305,7 @@ class ThirdLogin extends Base {
'nickname' => $userDetail['nickname'], 'nickname' => $userDetail['nickname'],
'username' => 'ApiAdmin_qq_' . Strs::randString(8), 'username' => 'ApiAdmin_qq_' . Strs::randString(8),
'openid' => $openid, 'openid' => $openid,
'create_ip' => request()->ip(1), 'create_ip' => sprintf("%u", ip2long($this->request->ip())),
'status' => 1, 'status' => 1,
'create_time' => time(), 'create_time' => time(),
'password' => Tools::userMd5('ApiAdmin') 'password' => Tools::userMd5('ApiAdmin')