request->isAjax()){ $post = $this->request->post(); OpLogic::setConfig($post); return JsonServer::success('设置成功'); } return view('config', [ 'config' => OpLogic::getConfig(['app_id','secret']), //微信公众开放平台-APP应用 'web_config' => OpLogic::getConfig(['web_app_id','web_secret']) //微信公众开放平台-网站应用 ]); } }