Browse Source

Merge branch 'master' into dev

shish 9 hours ago
parent
commit
39c141b5dc
1 changed files with 9 additions and 2 deletions
  1. 9 2
      app-hd/controllers/GhsBalanceChangeController.php

+ 9 - 2
app-hd/controllers/GhsBalanceChangeController.php

@@ -16,12 +16,19 @@ class GhsBalanceChangeController extends BaseController
     {
         $get = Yii::$app->request->get();
         $ghsId = $get['ghsId'] ?? 0;
+        $salt = $get['salt'] ?? '';
         $ghs = GhsClass::getById($ghsId, true);
-        GhsClass::valid($ghs, $this->shopId);
+        if (empty($salt)) {
+            GhsClass::valid($ghs, $this->shopId);
+        } else {
+            if ($ghs->salt != $salt) {
+                util::fail('无法查看');
+            }
+        }
         $where = [];
         $where['ghsId'] = $ghsId;
         $list = GhsBalanceChangeClass::getChangeList($where);
         util::success($list);
     }
 
-}
+}