浏览代码

Merge branch 'sess_0306' of 121.43.114.153:/home/git/repositories/shopnc into sess_0306

stanley-king 9 年之前
父节点
当前提交
28f27aa1f6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      helper/umeng.php

+ 2 - 1
helper/umeng.php

@@ -178,7 +178,7 @@ class upush
         $extra['key1'] = "key2";
         $extra['key1'] = "key3";
 
-        $payload['display_type'] = display_type::notification;
+        $payload['display_type'] = display_type::message;
         $payload['body'] = $body;
         $payload['extra'] = $extra;
         $pack['payload'] = $payload;
@@ -216,6 +216,7 @@ class upush
     {
 //        $ret = $this->pre_pack();
 //        if ($ret) {
+        
             $pack_body = self::android_pack();
             $url = self::PUSH_URL . '?sign=' . self::make_sign("POST", self::PUSH_URL, $pack_body, self::APP_MASTER_SECRET);
             return $this->http_post_data($url, json_encode($pack_body));