request->isAjax()) { $post = $this->request->post(); $post['type'] = isset($post['type']) && $post['type'] == 'on' ? 1 : 0; ConfigServer::set('express', 'is_express', $post['type']); return JsonServer::success('操作成功'); } $type = ConfigServer::get('express', 'is_express'); return view('', [ 'type' => $type ]); } /** * User: 意象信息科技 mjf * Desc: 运费模板列表 */ public function lists() { if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('获取成功', FreightLogic::lists($get));//运费模板页 } return view('index', [ 'charge_way_lists' => FreightModel::getChargeWay(true), 'config'=>ExpressLogic::getExpress() ]); } }