Skip to content

Commit

Permalink
Merge pull request netputer#32 from whatacold/master
Browse files Browse the repository at this point in the history
修正示例服务器代码中的一处错误,此会导致微信服务器校验token失败。
  • Loading branch information
netputer committed Sep 18, 2015
2 parents d82b43f + 03e5842 commit 5501e65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion example/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,10 @@ protected function onUnknown() {

}

$wechat = new MyWechat($token, $encodingAesKey, $appId, $debugMode);
$wechat = new MyWechat(array(
'token' => $token,
'aeskey' => $encodingAesKey,
'appid' => $appId,
'debug' => $debugMode
));
$wechat->run();

0 comments on commit 5501e65

Please sign in to comment.