Browse Source

管理员

shish 1 năm trước cách đây
mục cha
commit
d3977a2326

+ 1 - 1
app-ghs/controllers/BaseController.php

@@ -17,7 +17,7 @@ use common\components\util;
 class BaseController extends PublicController
 {
     public $admin, $adminId, $adminAvatar, $account;
-    public $sjId = 0, $sj = [], $sjExtend = [], $signPackage, $shop = [], $shopExt = [], $shopId = 0, $mainId = 0, $main = [], $lookShopId = 0, $shopAdminId = 0, $shopAdmin = [];
+    public $sjId = 0, $sj = [], $sjExtend = [], $signPackage, $shop = [], $shopExt = [], $shopId = 0, $mainId = 0, $main = [], $lookShopId = 0, $shopAdminId = 0, $shopAdmin;
     public $appId;
     public $isWx = false;
     public $isLogin = false;

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

@@ -49,6 +49,12 @@ class RefundController extends BaseController
         if (empty($cg)) {
             util::fail('没有找到订单');
         }
+
+        $staff = $this->shopAdmin;
+        if($staff->mobile != '15280215347'){
+            util::fail('请联系管理员操作');
+        }
+
         $respond = CgRefundClass::onlyRefundMoney($shop, $cg);
         $status = $respond['status'];
         $msg = $respond['msg'];

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

@@ -29,6 +29,12 @@ class RefundController extends BaseController
         if ($order->mainId != $this->mainId) {
             util::fail('不是你的订单');
         }
+
+        $staff = $this->shopAdmin;
+        if($staff->mobile != '15280215347'){
+            util::fail('请联系管理员操作');
+        }
+
         $shop = $this->shop;
         $respond = HdRefundClass::onlyRefundAmount($shop, $order);
         $status = $respond['status'];