Browse Source

没有登陆问题

shish 6 năm trước cách đây
mục cha
commit
a81a275f02
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/business/controllers/BaseController.php

+ 2 - 2
app/business/controllers/BaseController.php

@@ -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;
 		}