|
|
|
@ -12,14 +12,14 @@ declare (strict_types=1); |
|
|
|
|
|
|
|
|
|
namespace app\api\controller; |
|
|
|
|
|
|
|
|
|
use cores\BaseController; |
|
|
|
|
use app\api\model\User as UserModel; |
|
|
|
|
use app\api\model\Store as StoreModel; |
|
|
|
|
use app\api\model\store\Module as StoreModuleModel; |
|
|
|
|
use app\api\model\User as UserModel; |
|
|
|
|
use app\api\service\User as UserService; |
|
|
|
|
use cores\BaseController; |
|
|
|
|
use cores\exception\BaseException; |
|
|
|
|
use think\db\exception\DbException; |
|
|
|
|
use think\db\exception\DataNotFoundException; |
|
|
|
|
use think\db\exception\DbException; |
|
|
|
|
use think\db\exception\ModelNotFoundException; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -47,12 +47,12 @@ class Controller extends BaseController |
|
|
|
|
$this->checkStore(); |
|
|
|
|
// 验证当前客户端状态 |
|
|
|
|
$this->checkClient(); |
|
|
|
|
$user = $this->getLoginUser(); |
|
|
|
|
if ($user) { |
|
|
|
|
if ($user->user_type == 0 || $user->status == 0) { |
|
|
|
|
throwError('很抱歉,您没有权限进入系统'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//$user = $this->getLoginUser(); |
|
|
|
|
// if ($user) { |
|
|
|
|
// if ($user->user_type == 0 || $user->status == 0) { |
|
|
|
|
// throwError('很抱歉,您没有权限进入系统'); |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|