作者 sgj
1 个管道 的构建 通过 耗费 0 秒

添加最新版本的easywechat

@@ -1825,12 +1825,13 @@ function getAccessToken(){ @@ -1825,12 +1825,13 @@ function getAccessToken(){
1825 1825
1826 1826
1827 function wxappNotice($message){ 1827 function wxappNotice($message){
1828 - $appId=config('wechat_config.app_id');  
1829 - $secret=config('wechat_config.secret'); 1828 + $appId=config('wechat.app_id');
  1829 + $secret=config('wechat.secret');
1830 $config = [ 1830 $config = [
1831 'app_id' => $appId, 1831 'app_id' => $appId,
1832 'secret' => $secret, 1832 'secret' => $secret,
1833 ]; 1833 ];
  1834 + dump($config);
1834 $wechat=new \EasyWeChat\Foundation\Application($config); 1835 $wechat=new \EasyWeChat\Foundation\Application($config);
1835 $notice=$wechat->mini_program->notice; 1836 $notice=$wechat->mini_program->notice;
1836 /* if (empty($message)){ 1837 /* if (empty($message)){