瀏覽代碼

add publisher

stanley-king 4 年之前
父節點
當前提交
3617651b71
共有 1 個文件被更改,包括 11 次插入8 次删除
  1. 11 8
      helper/message/publisher.php

+ 11 - 8
helper/message/publisher.php

@@ -141,13 +141,6 @@ class publisher
         }
     }
 
-    public function modify_refill_channel()
-    {
-        if($this->mConnected) {
-            $this->mRedis->publish('refill',serialize(['type'=>'channel','value' => 0]));
-        }
-    }
-
     public function modify_activity()
     {
         $this->modify_activity_fullsent();
@@ -229,8 +222,18 @@ class publisher
         }
     }
 
-    public function reinit_channel()
+    public function modify_refill_channel()
     {
+        if($this->mConnected) {
+            $this->mRedis->publish('refill',serialize(['type'=>'channel','value' => 0]));
+        }
+    }
 
+    public function modify_refill_merchant()
+    {
+        if($this->mConnected) {
+            $this->mRedis->publish('refill',serialize(['type'=>'merchant_count','value' => 0]));
+        }
     }
+
 }