request->isAjax()) { $post = $this->request->post(); $result = MarketingConfigLogic::setOrderAward($post); if ($result !== true) { return JsonServer::error($result); } return JsonServer::success('设置成功'); } return view('', [ 'award_event_lists' => OrderEnum::getOrderAward(true), 'open_award' => ConfigServer::get('order_award','open_award',0), 'award_event' => ConfigServer::get('order_award','award_event',0), 'award_ratio' => ConfigServer::get('order_award','award_ratio'), ]); } }