request->get(); $wallet_type = $params['wallet_type'] ?? 'money'; if (!in_array($wallet_type, ['money', 'score'])) { $this->error('参数错误'); } $this->success(($wallet_type == 'money' ? '钱包记录' : '积分记录'), \addons\shopro\model\UserWalletLog::getList($params)); } }