|
|
@@ -166,8 +166,22 @@ class GhsController extends BaseController
|
|
|
if (is_numeric($location)) {
|
|
|
$where['location'] = $location;
|
|
|
}
|
|
|
- $list = GhsClass::getGhsList($where);
|
|
|
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ if ($this->mainId == 10) {
|
|
|
+ if (in_array($this->adminId, [37, 988, 14346]) == false) {
|
|
|
+ util::fail('没有数据哦');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if ($this->mainId == 644) {
|
|
|
+ if (in_array($this->adminId, [91]) == false) {
|
|
|
+ util::fail('没有数据哦');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $list = GhsClass::getGhsList($where);
|
|
|
$staff = $this->shopAdmin;
|
|
|
if (isset($staff->finance) == false || $staff->finance == 0) {
|
|
|
$totalDebtAmount = 0;
|