Ver Fonte

减少余额

shish há 1 ano atrás
pai
commit
c61e93ff0b
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      app-hd/controllers/DeductController.php

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

@@ -16,6 +16,7 @@ class DeductController extends BaseController
     //减少余额 ssh 20250329(这个方法应该建在CustomController的)
     public function actionDeductAmount()
     {
+        util::fail('即将上线');
         $post = Yii::$app->request->post();
         $customId = $post['customId'] ?? 0;
         $remark = $post['remark'] ?? '';
@@ -40,7 +41,7 @@ class DeductController extends BaseController
         }
 
         $staff = $this->shopAdmin;
-        if($staff->finance == 0){
+        if ($staff->finance == 0) {
             util::fail('没有财务权限');
         }