shish 1 rok temu
rodzic
commit
4174dcc362

+ 6 - 1
app-ghs/controllers/CashController.php

@@ -30,7 +30,12 @@ class CashController extends BaseController
     //申请提现 ssh 2021.3.14
     //申请提现 ssh 2021.3.14
     public function actionApply()
     public function actionApply()
     {
     {
-        util::fail('系统自动提现,无需人为操作');
+        if (getenv('YII_ENV') == 'production') {
+            util::fail('系统自动提现,无需人为操作');
+        }else{
+            //这里需要测试,所以打开来
+            //util::fail('系统自动提现,无需人为操作');
+        }
         $get = Yii::$app->request->get();
         $get = Yii::$app->request->get();
         $get['shopAdminId'] = $this->shopAdminId;
         $get['shopAdminId'] = $this->shopAdminId;
         $shopAdmin = $this->shopAdmin;
         $shopAdmin = $this->shopAdmin;

+ 6 - 1
app-hd/controllers/CashController.php

@@ -21,7 +21,12 @@ class CashController extends BaseController
     //申请提现 ssh 2021.3.14
     //申请提现 ssh 2021.3.14
     public function actionApply()
     public function actionApply()
     {
     {
-        util::fail('系统自动提现,无需人为操作');
+        if (getenv('YII_ENV') == 'production') {
+            util::fail('系统自动提现,无需人为操作');
+        } else {
+            //这里需要测试,所以打开来
+            //util::fail('系统自动提现,无需人为操作');
+        }
         $get = Yii::$app->request->get();
         $get = Yii::$app->request->get();
         $get['shopAdminId'] = $this->shopAdminId;
         $get['shopAdminId'] = $this->shopAdminId;
         $shopAdmin = $this->shopAdmin;
         $shopAdmin = $this->shopAdmin;