mirror of
https://github.com/easychen/pushdeer.git
synced 2025-01-10 23:15:30 +08:00
修改 android 发送函数返回的信息格式
This commit is contained in:
parent
24ee83ea49
commit
77d558d5a7
@ -88,7 +88,9 @@ function android_send($is_clip, $device_token, $text, $desp = '', $dev = true)
|
|||||||
$message1->build();
|
$message1->build();
|
||||||
|
|
||||||
$sender = android_sender();
|
$sender = android_sender();
|
||||||
return $sender->send($message1, $device_token)->getRaw();
|
// return $sender->send($message1, $device_token)->getRaw();
|
||||||
|
// 返回和 gorush 类似的格式,
|
||||||
|
return json_encode(["counts"=>1,"logs"=>[$sender->send($message1, $device_token)->getRaw()]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ios_send($is_clip, $device_token, $text, $desp = '', $dev = true)
|
function ios_send($is_clip, $device_token, $text, $desp = '', $dev = true)
|
||||||
|
Loading…
Reference in New Issue
Block a user