Skip to content

Commit

Permalink
Merge pull request #220 from heipidage/patch-13
Browse files Browse the repository at this point in the history
修改mipush通知栏发送参数问题
  • Loading branch information
hexsum committed Apr 23, 2018
2 parents 56dc99e + 6d7123d commit 411ff33
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions lib/Mojo/Webqq/Plugin/MiPush.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,19 @@ sub call {
}
);
} else {
$client->http_post(
$client->gen_url($api_url,
pass_through => 0,
registration_id => Mojo::Util::url_escape($registration_id),
restricted_package_namee => Mojo::Util::url_escape($pkgname),
'extra.notify_effect' => 2,
'extra.intent_uri' => $qq_package_url,
title => Mojo::Util::url_escape($title),
description => Mojo::Util::url_escape($message),
payload => Mojo::Util::url_escape($message),
),
{
'Authorization'=>"key=$api_key",
json=>1
$client->http_post($api_url,
{'Authorization'=>"key=$api_key",
json=>1
},
form=>{
pass_through => 0,
registration_id => $registration_id,
restricted_package_namee => $pkgname,
'extra.notify_effect' => 2,
'extra.intent_uri' => $qq_package_url,
title => $title,
description => $message,
payload => $message,
},
sub{
my $json = shift;
Expand Down

0 comments on commit 411ff33

Please sign in to comment.