|
|
@@ -43,8 +43,8 @@ class CustomController extends BaseController
|
|
|
$arr = ['showStock' => $showStock];
|
|
|
//如果新客需要审核,老的全部要打开为已经审核通过了
|
|
|
$arr['passStatus'] = 1;
|
|
|
- CustomClass::updateByCondition(['ownShopId'=>$shopId], $arr);
|
|
|
- GhsClass::updateByCondition(['shopId'=>$shopId], $arr);
|
|
|
+ CustomClass::updateByCondition(['ownShopId' => $shopId], $arr);
|
|
|
+ GhsClass::updateByCondition(['shopId' => $shopId], $arr);
|
|
|
|
|
|
util::complete('修改成功');
|
|
|
}
|
|
|
@@ -111,7 +111,7 @@ class CustomController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
//恋善好多花控制销账权限
|
|
|
- if (in_array($this->shopId, [55238,56609,56611])) {
|
|
|
+ if (in_array($this->shopId, [55238, 56609, 56611])) {
|
|
|
if (!in_array($this->adminId, [43856, 54620])) {
|
|
|
util::fail('暂无权限销单,请联系老板或财务');
|
|
|
}
|
|
|
@@ -136,7 +136,7 @@ class CustomController extends BaseController
|
|
|
}
|
|
|
//源花汇
|
|
|
if (in_array($this->shopId, [10649])) {
|
|
|
- if (!in_array($this->adminId, [11641, 11648,4])) {
|
|
|
+ if (!in_array($this->adminId, [11641, 11648, 4])) {
|
|
|
util::fail('请闵总或小周操作');
|
|
|
}
|
|
|
}
|
|
|
@@ -146,12 +146,18 @@ class CustomController extends BaseController
|
|
|
util::fail('只能叶荷操作');
|
|
|
}
|
|
|
}
|
|
|
- //花大苪,多处请搜索关键词hdb_clear_control
|
|
|
+ //花大苪,多处请搜索关键词 hdb_clear_control
|
|
|
if (in_array($this->shopId, [8249])) {
|
|
|
if (!in_array($this->adminId, [9303])) {
|
|
|
util::fail('只能叶荷和财务操作');
|
|
|
}
|
|
|
}
|
|
|
+ //小齐鲜花总店和出车,多处请搜索关键词 xq_clear_control
|
|
|
+ if (in_array($this->shopId, [41467, 42946])) {
|
|
|
+ if (!in_array($this->adminId, [40144])) {
|
|
|
+ util::fail('您不能充值销单哦。');
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
if (in_array($this->shopId, [36523])) {
|
|
|
if ($this->adminId != 919) {
|