Browse Source

reuse swoole sleep

stanley-king 3 years ago
parent
commit
826a493780
1 changed files with 2 additions and 1 deletions
  1. 2 1
      helper/refill/RefillBase.php

+ 2 - 1
helper/refill/RefillBase.php

@@ -86,7 +86,8 @@ class RefillBase
         {
             if(!empty($input)) {
                 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;
         }