request->get(); $shopId = $get['shopId'] ?? 0; $tx = $get['tx'] ?? dict::getDict('yeTx', 'canNot'); $where = []; $where['shopId'] = $shopId; if (!empty($tx)) { $where['tx'] = $tx; } $respond = ShopYeChangeClass::getChangeList($where); if (isset($respond['list']) && !empty($respond['list'])) { foreach ($respond['list'] as $key => $val) { if ($tx == dict::getDict('yeTx', 'can')) { $respond['list'][$key]['balance'] = '-'; } else { $respond['list'][$key]['txBalance'] = '-'; } } } util::success($respond); } }