request->isAjax()) { $get = $this->request->get(); $lists = ResourceLogLogic::lists($get); return JsonServer::success("获取成功", $lists); } // 订单来源 $order_source = Client_::getClient(true); // 支付方式 $pay_way = PayEnum::getPayWay(true); return view('', [ 'order_source' => $order_source, 'pay_way' => $pay_way, ]); } /** * @NOTES: 删除帮助分类 * @author: 张无忌 */ public function del() { if ($this->request->isAjax()) { // (new HelpValidate())->goCheck('id'); $id = $this->request->post('id'); $res = ResourceLogLogic::del($id); if ($res === false) { $error = ResourceLogLogic::getError() ?: '删除失败'; return JsonServer::error($error); } return JsonServer::success('删除成功'); } return JsonServer::error('异常'); } }