request->get(''); WechatLogic::index($params); } public function jsConfig() { $url = $this->request->get('url'); $result = WeChatLogic::jsConfig($url); if ($result['code'] != 1) { return JsonServer::error('',[$result]); } return JsonServer::success('', ['config' => $result['data']]); } }