request->get(); $ghsId = $get['ghsId'] ?? 0; $salt = $get['salt'] ?? ''; $ghs = GhsClass::getById($ghsId, true); if (empty($ghs)) { util::fail('无法查看'); } if (empty($salt)) { GhsClass::valid($ghs, $this->shopId); } else { // 扫码付款链接携带 salt,与小程序余额明细共用同一套数据 if ($ghs->salt != $salt) { util::fail('无法查看'); } } $where = []; $where['ghsId'] = $ghsId; $list = GhsBalanceChangeClass::getChangeList($where); util::success($list); } }