作者 王智

1111

@@ -200,13 +200,10 @@ class Common extends Api @@ -200,13 +200,10 @@ class Common extends Api
200 $api = input('api'); 200 $api = input('api');
201 $url = input('url'); 201 $url = input('url');
202 $config = config('wechat'); 202 $config = config('wechat');
203 - // dump($config); 203 + dump($config);
  204 + die;
204 $APIs = explode(',', $api); 205 $APIs = explode(',', $api);
205 -// $Wechat = new Application($config);  
206 - dump($api);  
207 - dump($url);  
208 - dump($APIs);  
209 - die; 206 + $Wechat = new Application($config);
210 $Wechat->js->setUrl($url); 207 $Wechat->js->setUrl($url);
211 $return['config'] = $Wechat->js->config($APIs, $debug = false, $beta = false, $json = false); 208 $return['config'] = $Wechat->js->config($APIs, $debug = false, $beta = false, $json = false);
212 $this->success('', $return); 209 $this->success('', $return);