Browse Source

add publisher

stanley-king 4 years ago
parent
commit
3617651b71
1 changed files with 11 additions and 8 deletions
  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()
     public function modify_activity()
     {
     {
         $this->modify_activity_fullsent();
         $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]));
+        }
     }
     }
+
 }
 }