|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace hd\controllers;
|
|
|
|
|
|
+use biz\admin\classes\AdminClass;
|
|
|
use bizHd\admin\classes\ShopAdminClass;
|
|
|
use bizHd\admin\services\ShopAdminService;
|
|
|
use bizHd\admin\services\AdminService;
|
|
|
@@ -150,7 +151,7 @@ class AuthController extends PublicController
|
|
|
if (empty($password)) {
|
|
|
util::fail('请输入密码');
|
|
|
}
|
|
|
- $admin = AdminService::getByCondition(['mobile' => $mobile]);
|
|
|
+ $admin = AdminService::getByCondition(['style' => AdminClass::STYLE_HD, 'mobile' => $mobile]);
|
|
|
if (password_verify($password, $admin['password']) == false) {
|
|
|
util::fail('密码错误');
|
|
|
}
|