|
|
@@ -6,6 +6,7 @@ use biz\merchant\services\AdminService;
|
|
|
use biz\merchant\services\MerchantAssetService;
|
|
|
use biz\merchant\services\MerchantExtendService;
|
|
|
use biz\merchant\services\MerchantService;
|
|
|
+use common\components\jwt;
|
|
|
use Yii;
|
|
|
use common\components\util;
|
|
|
|
|
|
@@ -29,8 +30,7 @@ class BaseController extends PublicController
|
|
|
public function beforeAction($action)
|
|
|
{
|
|
|
//token验证
|
|
|
- //$adminId = jwt::getLoginId();
|
|
|
- $adminId = 1;
|
|
|
+ $adminId = jwt::getLoginId();
|
|
|
if (empty($adminId)) {
|
|
|
$this->validate = false;
|
|
|
}
|