Kaynağa Gözat

调整push增加从红包来的用户,关注发红包者~

stanley-king 8 yıl önce
ebeveyn
işleme
6b7b08795b

+ 1 - 1
crontab/control/testpush.php

@@ -11,7 +11,7 @@ ini_set('default_socket_timeout', -1);
 class testpushControl extends BaseCronControl
 {
     public function indexOp() {
-        $param['member_id'] = 37536;
+        $param['member_id'] = 36490;
         $param['text']      = "红包退还通知:您发送的红包已超过24小时,退还未被领取的金额1234元,请在收支明细中查看.";
         $param['go_type']   = '';
         QueueClient::push('upushSendMsg',$param);

BIN
daemon/友盟推送错误码表.docx


+ 3 - 0
helper/push_app.php

@@ -10,9 +10,12 @@ class push_app
     protected $timestamp = NULL;
     protected $validation_token = NULL;
     protected $alias_type = 'LRLZ';
+
     protected $ios_alias_type = 'kPandaMakeUpAlias';
+
     protected $androd_appkey = '5631efd4e0f55a8770000027';
     protected $androd_appmastersecret = 'r6w2a8z9x8zonh7qmk8ds2fvypu02wpj';
+
     protected $ios_appkey = '568b6727e0f55a06580011e7';
     protected $ios_appmastersecret = 'q9rmi5zjvfpvkwauenbgvhnmdsqdjeso';
 

+ 5 - 6
helper/session_helper.php

@@ -163,12 +163,11 @@ class session_helper
                 relation_helper::onRegister($member_id);
                 $ret = relation_helper::onSubscribe($_SESSION['member_id'],$type->sender_id());
                 if($ret) {
-                    //成为好友通知
-//                    $push_param = array();
-//                    $push_param['member_id'] = $type->sender_id();
-//                    $push_param['text']      = "红包退还通知:您发送的红包已超过24小时,退还未被领取的金额{$amount}元,请在收支明细中查看.";
-//                    $push_param['go_type']   = 'bonus';
-//                    QueueClient::push('upushSendMsg',$push_param);
+                    $push_param = array();
+                    $push_param['member_id'] = $type->sender_id();
+                    $push_param['text']      = "手机{$mobile}用户,关注了你~";
+                    $push_param['go_type']   = 'bonus';
+                    QueueClient::push('upushSendMsg',$push_param);
                 }
                 $bonus = account_helper::register_bonus($member_id,200);
                 if($bonus == false) {

+ 0 - 9
mobile/help.html

@@ -1,9 +0,0 @@
-<html>
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-        <title>帮助</title>
-    </head>
-    <body>
-
-    </body>
-</html>

+ 0 - 170
mobile/notify_url.log

@@ -1,170 +0,0 @@
-执行日期:2015-03-18-22:55:47
-【postXml 】:
-
-
-
-执行日期:2015-03-18-22:56:57
-【postXml 】:
-
-
-
-执行日期:2015-03-18-22:58:05
-【postXml 】:
-
-
-
-执行日期:2015-03-18-23:08:44
-【postXml 】:
-
-
-
-执行日期:2015-03-18-23:08:50
-【postXml 】:
-
-
-
-执行日期:2015-03-18-23:13:55
-【postXml 】:
-
-
-
-执行日期:2015-03-18-23:19:53
-【postXml 】:
-
-
-
-执行日期:2015-03-18-23:20:18
-【postXml 】:
-
-
-
-执行日期:2015-03-18-23:27:24
-【postXml 】:
-
-
-
-执行日期:2015-03-18-23:27:25
-【postXml 】:
-
-
-
-执行日期:2015-03-18-23:27:25
-【postXml 】:
-
-
-
-执行日期:2015-03-19-00:30:58
-【postXml 】:
-
-
-
-执行日期:2015-03-19-01:42:43
-【postXml 】:
-
-
-
-执行日期:2015-03-19-23:57:35
-【postXml 】:
-
-
-
-执行日期:2015-03-19-23:57:47
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:05:57
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:20:00
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:20:06
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:20:12
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:20:15
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:25:39
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:25:42
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:25:45
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:26:39
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:29:12
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:31:52
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:46:41
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:46:42
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:46:49
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:46:52
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:46:53
-【postXml 】:
-
-
-
-执行日期:2015-03-20-09:47:00
-【postXml 】:
-
-
-
-执行日期:2015-03-20-10:03:20
-【postXml 】:
-
-
-
-执行日期:2015-03-20-10:09:31
-【postXml 】:
-
-
-

+ 33 - 0
test/queueTest.php

@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * Created by PhpStorm.
+ * User: stanley-king
+ * Date: 16/7/20
+ * Time: 下午4:16
+ */
+
+define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
+
+require_once(BASE_ROOT_PATH . '/fooder.php');
+
+
+class queueTest extends PHPUnit_Framework_TestCase
+{
+    public static function setUpBeforeClass()
+    {
+        Base::run_util();
+    }
+
+    public function testPush()
+    {
+        $param['member_id'] = 36490;
+        $param['text']      = "红包退还通知:您发送的红包已超过24小时,退还未被领取的金额1234元,请在收支明细中查看.";
+        $param['go_type']   = '';
+        Logic('queue')->upushSendMsg($param);
+    }
+
+    public static function tearDownAfterClass()
+    {
+    }
+}