|
|
@ -13,6 +13,7 @@ use app\admin\model\Common;
|
|
|
|
use com\verify\HonrayVerify;
|
|
|
|
use com\verify\HonrayVerify;
|
|
|
|
use think\Cache;
|
|
|
|
use think\Cache;
|
|
|
|
use think\Request;
|
|
|
|
use think\Request;
|
|
|
|
|
|
|
|
use think\Session;
|
|
|
|
|
|
|
|
|
|
|
|
class User extends Common
|
|
|
|
class User extends Common
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -647,8 +648,15 @@ class User extends Common
|
|
|
|
$data['loginExpire'] = $loginExpire;
|
|
|
|
$data['loginExpire'] = $loginExpire;
|
|
|
|
//保存authKey信息
|
|
|
|
//保存authKey信息
|
|
|
|
$userData = [];
|
|
|
|
$userData = [];
|
|
|
|
$userData['authkey'] = $authKey;
|
|
|
|
|
|
|
|
$userData['authkey_time'] = time() + $loginExpire;
|
|
|
|
$wxuser_id = Session::get('wxuser_id');
|
|
|
|
|
|
|
|
if ($wxuser_id) {
|
|
|
|
|
|
|
|
$data['authKey'] = 'wxwork';
|
|
|
|
|
|
|
|
$userData['wxwork_id'] = $wxuser_id;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$userData['authkey'] = $authKey;
|
|
|
|
|
|
|
|
$userData['authkey_time'] = time() + $loginExpire;
|
|
|
|
|
|
|
|
}
|
|
|
|
//把状态未激活至为启用
|
|
|
|
//把状态未激活至为启用
|
|
|
|
if ($userInfo['status'] == 2) {
|
|
|
|
if ($userInfo['status'] == 2) {
|
|
|
|
$userData['status'] = 1;
|
|
|
|
$userData['status'] = 1;
|
|
|
|