Sfoglia il codice sorgente

fix order mch_notify_state order count err

stanley-king 3 anni fa
parent
commit
4358fde452
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      helper/refill/ops/order_clear.php

+ 1 - 1
helper/refill/ops/order_clear.php

@@ -149,7 +149,7 @@ class order_clear
                 $oids[] = $item['order_id'];
                 $state = intval($item['inner_status']);
                 $inner_state[$state] += 1;
-                $mch_notify_counts   += intval($item['mch_notify_state']);
+                $mch_notify_counts += intval($item['mch_notify_state']) >= 1 ? 1 : 0;
 
                 if($state === 0 && $is_retrying === 0) {
                     $is_retrying = intval($item['is_retrying']);