Browse Source

提现管理

shish 4 years ago
parent
commit
ec193f5032
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app-ghs/controllers/ShopMoneyController.php

+ 5 - 1
app-ghs/controllers/ShopMoneyController.php

@@ -42,6 +42,11 @@ class ShopMoneyController extends BaseController
     //取出现金 ssh 20220811
     public function actionOut()
     {
+        $staff = $this->shopAdmin;
+        if (isset($staff->founder) == false || $staff->founder != 2) {
+            util::fail('没有权限');
+        }
+
         $get = Yii::$app->request->get();
         $amount = $get['amount'] ?? 0;
         if (is_numeric($amount) == false || $amount <= 0) {
@@ -49,7 +54,6 @@ class ShopMoneyController extends BaseController
         }
         $mainId = $this->mainId;
         $staffId = $this->shopAdminId ?? 0;
-        $staff = $this->shopAdmin;
         $data = [];
         $data['mainId'] = $mainId;
         $data['sjId'] = $this->sjId;