作者 chencheng

2

@@ -163,7 +163,8 @@ class Wechat extends Api @@ -163,7 +163,8 @@ class Wechat extends Api
163 if(empty(request()->param('code'))){ 163 if(empty(request()->param('code'))){
164 return $this->error('非法操作'); 164 return $this->error('非法操作');
165 } 165 }
166 - $_REQUEST['code'] = request()->param('code'); 166 +
  167 +
167 try{ 168 try{
168 $app = WehcatModule::getInstance()->initWechat(); 169 $app = WehcatModule::getInstance()->initWechat();
169 $oauth = $app->oauth; 170 $oauth = $app->oauth;