Sfoglia il codice sorgente

重构push一些参数

stanley-king 8 anni fa
parent
commit
123a211d70
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 4
      helper/push_app.php

+ 3 - 4
helper/push_app.php

@@ -9,13 +9,12 @@ class push_app
     protected $appMasterSecret = NULL;
     protected $timestamp = NULL;
     protected $validation_token = NULL;
-    protected $alias_type = 'LRLZ';
-
-    protected $ios_alias_type = 'kPandaMakeUpAlias';
 
+    protected $android_alias_type = 'LRLZ';
     protected $androd_appkey = '5631efd4e0f55a8770000027';
     protected $androd_appmastersecret = 'r6w2a8z9x8zonh7qmk8ds2fvypu02wpj';
 
+    protected $ios_alias_type = 'kPandaMakeUpAlias';
     protected $ios_appkey = '568b6727e0f55a06580011e7';
     protected $ios_appmastersecret = 'q9rmi5zjvfpvkwauenbgvhnmdsqdjeso';
 
@@ -35,7 +34,7 @@ class push_app
         // use file_id to send customized notification.
         $customizedcast->setPredefinedKeyValue("alias", $pushinfo['member_id']);
         // Set your alias_type here
-        $customizedcast->setPredefinedKeyValue("alias_type", $this->alias_type);
+        $customizedcast->setPredefinedKeyValue("alias_type", $this->android_alias_type);
         $customizedcast->setPredefinedKeyValue("ticker", $pushinfo['text']);
         $customizedcast->setPredefinedKeyValue("title", $pushinfo['text']);
         $customizedcast->setPredefinedKeyValue("text", $pushinfo['text']);