|
|
@@ -112,9 +112,17 @@ class OrderClearController extends BaseController
|
|
|
}
|
|
|
|
|
|
//花样年华只有总控才能结账
|
|
|
- if (in_array($this->shopId, [1585, 1596])) {
|
|
|
- if ($this->adminId != 2876) {
|
|
|
- util::fail('暂无权限');
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ if (in_array($this->shopId, [1585, 1596])) {
|
|
|
+ if ($this->adminId != 2876) {
|
|
|
+ util::fail('暂无权限');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (in_array($this->shopId, [36523])) {
|
|
|
+ if ($this->adminId != 919) {
|
|
|
+ util::fail('暂无权限');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|