|
|
@@ -85,8 +85,8 @@ class pushNotice
|
|
|
$notify = new GTNotification();
|
|
|
$notify->setTitle($title);
|
|
|
$notify->setBody($body);
|
|
|
- $notify->setChannelId('channelId1');
|
|
|
- $notify->setChannelName('channelName1');
|
|
|
+ //$notify->setChannelId('channelId1');
|
|
|
+ //$notify->setChannelName('channelName1');
|
|
|
$notify->setChannelLevel(4);
|
|
|
|
|
|
//点击通知后续动作,目前支持以下后续动作:
|
|
|
@@ -153,7 +153,7 @@ class pushNotice
|
|
|
|
|
|
$thirdNotification = new GTThirdNotification();
|
|
|
$thirdNotification->setTitle($title);
|
|
|
- $thirdNotification->setBody("body-".self::micro_time().': ' . $body);
|
|
|
+ $thirdNotification->setBody($body);
|
|
|
$thirdNotification->setClickType(GTThirdNotification::CLICK_TYPE_STAERAPP);
|
|
|
//$thirdNotification->setIntent("intent:#Intent;component=你的包名/你要打开的 activity 全路径;S.parm1=value1;S.parm2=value2;end");
|
|
|
//$thirdNotification->setUrl("http://docs.getui.com/getui/server/rest_v2/push/");
|