|
|
@@ -13,6 +13,7 @@ use common\components\dict;
|
|
|
use common\components\httpUtil;
|
|
|
use common\components\imgUtil;
|
|
|
use common\components\jwt;
|
|
|
+use common\components\noticeUtil;
|
|
|
use common\components\util;
|
|
|
use Yii;
|
|
|
use common\components\stringUtil;
|
|
|
@@ -51,12 +52,15 @@ class AuthController extends PublicController
|
|
|
$pc = new \WXBizDataCrypt($appId, $sessionKey);
|
|
|
$errCode = $pc->decryptData($encryptedData, $iv, $result);
|
|
|
if ($errCode != 0) {
|
|
|
+ noticeUtil::push($cacheKey . " 登录失败", '15280215347');
|
|
|
util::fail('登录失败...');
|
|
|
}
|
|
|
$arr = Json::decode($result);
|
|
|
$phoneNumber = isset($arr['purePhoneNumber']) ? $arr['purePhoneNumber'] : '';
|
|
|
if (empty($phoneNumber)) {
|
|
|
+ noticeUtil::push($cacheKey . " 登录失败...", '15280215347');
|
|
|
util::fail('登录失败了');
|
|
|
+ //Yii::$app->redis->executeCommand('DEL', [$cacheKey]);
|
|
|
}
|
|
|
$admin = AdminService::getByCondition(['mobile' => $phoneNumber]);
|
|
|
if (empty($admin)) {
|