request->isAjax()) { $post = $this->request->post(); if(isset($post['qr_code'])){ $domain = $this->request->domain(); $post['qr_code'] = str_replace($domain, '', $post['qr_code']); }else{ $post['qr_code'] = ''; } MnpLogic::setMnp($post); return JsonServer::success('设置成功'); } $mnp = MnpLogic::getMnp(); return view('set_mnp', ['mnp' => $mnp]); } }