shish 5 gadi atpakaļ
vecāks
revīzija
ffd362848b
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      app-ghs/controllers/RefundController.php

+ 6 - 0
app-ghs/controllers/RefundController.php

@@ -31,6 +31,12 @@ class RefundController extends BaseController
     //退款  linqh 2021.6.25
     public function actionCreateOrder()
     {
+
+        $shopAdmin = $this->shopAdmin;
+        if (isset($shopAdmin['super']) == false || $shopAdmin['super'] != 1) {
+            util::fail('超管才能操作退款');
+        }
+
         $post = Yii::$app->request->post();
         $id = isset($post['id']) ? $post['id'] : 0;
         $order = OrderService::getOrderInfo($id, false, false, false, false);