浏览代码

修改价格

shish 10 月之前
父节点
当前提交
aebfab9fa6
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      app-ghs/controllers/OrderController.php

+ 4 - 2
app-ghs/controllers/OrderController.php

@@ -1265,10 +1265,12 @@ class OrderController extends BaseController
         } else {
             if (!empty($diff)) {
                 $mainId = $this->mainId;
-                //花样年华 限制员工只能按原价开单,不能改价格
+                //花样年华,除了老板,只能按原价开单,不能改价格
                 if (getenv('YII_ENV') == 'production') {
                     if (in_array($mainId, [1553, 1563])) {
-                        util::fail('请按花材原价格开单');
+                        if ($this->adminId != 2876) {
+                            util::fail('请按花材原价格开单');
+                        }
                     }
                 } else {
                     if (in_array($mainId, [0, 1])) {