Commit 2f2e0c65 authored by hujun's avatar hujun

还原推送修改

parent e0ae96c1
...@@ -136,28 +136,11 @@ class GeTuiUntils { ...@@ -136,28 +136,11 @@ class GeTuiUntils {
*/ */
function public_push_message_for_one($id, $device_id, $title, $content) function public_push_message_for_one($id, $device_id, $title, $content)
{ {
$homeurl = $this->http_host(); $home_url = $this->http_host();
$data['agent_id'] = $id; $data['agent_id'] = $id;
$data['black_title'] = $title; $data['black_title'] = $title;
$data['content'] = $content; $data['content'] = $content;
if (is_array($device_id)) {
foreach ($device_id as $k=>$v) {
$data['device_id'] = $v;
$data['touchuan'] = json_encode(array(
'title' => $title,
'content' => $content,
'type' => 'other',
'url' => '',
'name' => $title,
'id' => '69',
'imageUrl' => $homeurl .'notice_android_logo.png'));
$this->push_message_for_one($data);
}
return ;
} else {
$data['device_id'] = $device_id; $data['device_id'] = $device_id;
$data['touchuan'] = json_encode(array( $data['touchuan'] = json_encode(array(
'title' => $title, 'title' => $title,
'content' => $content, 'content' => $content,
...@@ -165,10 +148,9 @@ class GeTuiUntils { ...@@ -165,10 +148,9 @@ class GeTuiUntils {
'url' => '', 'url' => '',
'name' => $title, 'name' => $title,
'id' => '69', 'id' => '69',
'imageUrl' => $homeurl .'notice_android_logo.png')); 'imageUrl' => $home_url .'notice_android_logo.png'));
return $this->push_message_for_one($data); return $this->push_message_for_one($data);
} }
}
public function http_host() public function http_host()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment