shish il y a 4 ans
Parent
commit
90b8dca0e8

+ 2 - 1
app-hd/controllers/ClearController.php

@@ -13,7 +13,8 @@ use Yii;
 class ClearController extends BaseController
 {
 
-    public $guestAccess = ['get-full-info','detail'];
+
+    public $guestAccess = ['get-full-info'];
 
     //取消结账单 ssh 20220509
     public function actionCancel()

+ 0 - 2
app-hd/controllers/PurchaseClearController.php

@@ -12,8 +12,6 @@ use common\components\util;
 class PurchaseClearController extends BaseController
 {
 
-    public $guestAccess = ['wx-pay'];
-
     //生成结帐订单 ssh 2021.1.26
     public function actionCreateOrder()
     {

+ 1 - 3
app-hd/controllers/PurchaseController.php

@@ -24,8 +24,6 @@ use common\components\util;
 class PurchaseController extends BaseController
 {
 
-    public $guestAccess = ['detail'];
-
     //生成采购单 ssh 2021.1.17
     public function actionCreateOrder()
     {
@@ -203,7 +201,7 @@ class PurchaseController extends BaseController
         $id = $get['id'] ?? 0;
         $info = PurchaseService::getInfo($id, true, true);
         if (isset($info['mainId']) == false || $info['mainId'] != $this->mainId) {
-            //util::fail('没有权限访问');
+            util::fail('没有权限访问');
         }
 
         $customId = $info['customId'] ?? 0;