shish 2 years ago
parent
commit
40aa132f2d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app-ghs/controllers/OrderClearController.php

+ 5 - 0
app-ghs/controllers/OrderClearController.php

@@ -124,6 +124,11 @@ class OrderClearController extends BaseController
             util::fail('没有权限');
         }
 
+        $staff = $this->shopAdmin;
+        if (isset($staff->finance) == false || $staff->finance == 0) {
+            util::fail('请先开通结账的权限');
+        }
+
         //花样年华只有总控才能结账
         if (getenv('YII_ENV') == 'production') {
             if (in_array($this->shopId, [1585, 1596])) {