Skip to content

Commit

Permalink
增加Openwx插件poll_api心跳请求debug日志
Browse files Browse the repository at this point in the history
  • Loading branch information
hexsum committed Apr 9, 2019
1 parent ab6a609 commit a5693e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Mojo/Weixin/Plugin/Openwx.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sub call{

if(defined $data->{poll_api}){
$client->on('_mojo_weixin_plugin_openwx_poll_over' => sub{
$client->debug("发起poll_api[$data->{poll_api}]心跳请求...");
$client->http_get($data->{poll_api},sub{
$client->timer($data->{poll_interval} || 5,sub {$client->emit('_mojo_weixin_plugin_openwx_poll_over');});
});
Expand Down

0 comments on commit a5693e9

Please sign in to comment.