Explorar o código

reuse swoole sleep

stanley-king %!s(int64=3) %!d(string=hai) anos
pai
achega
826a493780
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
         }