File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1212 ->setNotificationAlert ('Hi, JPush ' );
1313try {
1414 $ response = $ push_payload ->send ();
15- }catch (\JPush \Exceptions \APIConnectionException $ e ) {
15+ print_r ($ response );
16+ } catch (\JPush \Exceptions \APIConnectionException $ e ) {
1617 // try something here
1718 print $ e ;
1819} catch (\JPush \Exceptions \APIRequestException $ e ) {
1920 // try something here
2021 print $ e ;
2122}
22- print_r ($ response );
23-
2423
2524// 完整的推送示例
2625// 这只是使用样例,不应该直接用于实际生产环境中 !!
8988 // 'big_push_duration' => 1
9089 ))
9190 ->send ();
91+ print_r ($ response );
9292
9393} catch (\JPush \Exceptions \APIConnectionException $ e ) {
9494 // try something here
9797 // try something here
9898 print $ e ;
9999}
100-
101- print_r ($ response );
Original file line number Diff line number Diff line change 44class APIConnectionException extends JPushException {
55
66 function __toString () {
7- return "\n" . __CLASS__ . " -- {$ message } \n" ;
7+ return "\n" . __CLASS__ . " -- {$ this -> message } \n" ;
88 }
99}
Original file line number Diff line number Diff line change 11<?php
22namespace JPush ;
33
4- const VERSION = '3.5.10 ' ;
4+ const VERSION = '3.5.11 ' ;
You can’t perform that action at this time.
0 commit comments