Skip to content

Commit

Permalink
修正示例服务器代码中的一处错误,此会导致微信服务器校验token失败。
Browse files Browse the repository at this point in the history
  • Loading branch information
whatacold committed Sep 17, 2015
1 parent d82b43f commit 03e5842
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 03e5842

Please sign in to comment.