浏览代码

reuse swoole sleep

stanley-king 3 年之前
父节点
当前提交
826a493780
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      helper/refill/RefillBase.php

+ 2 - 1
helper/refill/RefillBase.php

@@ -86,7 +86,8 @@ class RefillBase
         {
         {
             if(!empty($input)) {
             if(!empty($input)) {
                 Log::record(__METHOD__ . " recv notify when order_state=ORDER_STATE_PAY" ,Log::DEBUG);
                 Log::record(__METHOD__ . " recv notify when order_state=ORDER_STATE_PAY" ,Log::DEBUG);
-                util::async_notify($chname,$input,5);
+                Swoole\Coroutine::sleep(5);
+                util::push_notify($chname,$input);
             }
             }
             return false;
             return false;
         }
         }