data($result); } /** * @notes 充值设置 * @return \think\response\Json * @author Tab * @date 2021/8/10 18:13 */ public function setConfig() { $params = $this->request->post(); $result = RechargeLogic::setConfig($params); if($result) { return $this->success('设置成功'); } return $this->fail(RechargeLogic::getError()); } /** * @notes 查看充值记录列表 * @return \think\response\Json * @author Tab * @date 2021/8/11 15:22 */ public function lists() { return $this->dataLists(); } /** * @notes 充值数据中心 * @return \think\response\Json * @author Tab * @date 2021/8/11 16:43 */ public function dataCenter() { $result = RechargeLogic::dataCenter(); return $this->data($result); } }