dataLists(new RechargeRecordLists()); } /** * @notes 获取代理充值记录列表 * @return \think\response\Json * @author bd * @date 2024/01/31 14:07 */ public function agentLists() { return $this->dataLists(new AgentRechargeRecordLists()); } /** * @notes 删除充值记录 * @return \think\response\Json * @author bd * @date 2024/01/31 14:07 */ public function delete() { $params = (new RechargeRecordValidate())->post()->goCheck('delete'); RechargeRecordLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 同意充值 * @return \think\response\Json * @author bd * @date 2024/01/31 14:07 */ public function agree() { $params = (new RechargeRecordValidate())->post()->goCheck('agree'); $result = RechargeRecordLogic::agree($params['id']); if (true === $result) { return $this->success('同意成功', [], 1, 1); } return $this->fail(RechargeRecordLogic::getError()); } /** * @notes 拒绝充值 * @return \think\response\Json * @author bd * @date 2024/01/31 14:07 */ public function refuse() { $params = (new RechargeRecordValidate())->post()->goCheck('refuse'); $result = RechargeRecordLogic::refuse($params['id']); if (true === $result) { return $this->success('拒绝成功', [], 1, 1); } return $this->fail(RechargeRecordLogic::getError()); } /** * @notes 备注 * @return \think\response\Json * @author bd * @date 2024/01/31 14:07 */ public function remark() { $params = $this->request->post(); $params['admin_id'] = $this->adminId; $result = RechargeRecordLogic::remark($params); if (true === $result) { return $this->success('备注成功', [], 1, 1); } return $this->fail(RechargeRecordLogic::getError()); } /** * @notes 修改充值金额 * @return \think\response\Json * @author bd * @date 2024/01/31 14:07 */ public function changeAmount() { $params = $this->request->post(); $result = RechargeRecordLogic::changeAmount($params); if (true === $result) { return $this->success('修改成功', [], 1, 1); } return $this->fail(RechargeRecordLogic::getError()); } /** * @notes 新充值提现条数 * @return \think\response\Json * @author bd * @date 2024/01/31 14:07 */ public function warmCount() { $result = RechargeRecordLogic::warmCount(); return $this->success('', $result); } /** * @notes 充值统计 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author bd * @date 2024/01/31 14:07 */ public function stat() { $result = RechargeRecordLogic::stat(); return $this->success('', $result); } }