|
@@ -27,11 +27,20 @@ class ShopAdminClass extends BaseClass
|
|
|
}
|
|
}
|
|
|
$mainId = $shop->mainId ?? 0;
|
|
$mainId = $shop->mainId ?? 0;
|
|
|
$staffId = $staff->id ?? 0;
|
|
$staffId = $staff->id ?? 0;
|
|
|
- if ($mainId == 7704) {
|
|
|
|
|
- //国恋只有指定人有查看财务权限
|
|
|
|
|
- $point = [133727, 133545];
|
|
|
|
|
- if (in_array($staffId, $point) == false) {
|
|
|
|
|
- $lookMoney = 0;
|
|
|
|
|
|
|
+ if (getenv('YII_ENV', 'local') == 'production') {
|
|
|
|
|
+ if ($mainId == 7704) {
|
|
|
|
|
+ //国恋只有指定人有查看财务权限
|
|
|
|
|
+ $point = [133727, 133545];
|
|
|
|
|
+ if (in_array($staffId, $point) == false) {
|
|
|
|
|
+ $lookMoney = 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if ($mainId == 644) {
|
|
|
|
|
+ $point = [126329];
|
|
|
|
|
+ if (in_array($staffId, $point) == false) {
|
|
|
|
|
+ $lookMoney = 0;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return $lookMoney;
|
|
return $lookMoney;
|