Browse Source

add sleep to refill base file

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

+ 3 - 1
helper/refill/RefillBase.php

@@ -19,6 +19,7 @@ use QueueClient;
 use member_info;
 use Exception;
 use trans_wapper;
+use Swoole;
 
 class RefillBase
 {
@@ -84,6 +85,7 @@ class RefillBase
         if ($order_state == ORDER_STATE_PAY)
         {
             if(!empty($input)) {
+                Swoole\Coroutine::sleep(2);
                 util::push_notify($chname,$input);
             }
             return false;
@@ -221,7 +223,7 @@ class RefillBase
         $input['pd_pay'] = true;
 
         $logic_buy_virtual = Logic('buy_virtual');
-        $result = $logic_buy_virtual->buyStep3($input, $buyer_id, [$calc, 'calc_vorder_amount'], true);
+        $result = $logic_buy_virtual->buyStep3($input, $buyer_id, [$calc, 'calc_vorder_amount'], true,false);
 
         $mod_refill = Model('refill_order');
         if ($result['state'] === true)