rabin hace 3 años
padre
commit
27e6d9b45b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      service/agent/lib/Dhorder.php

+ 2 - 1
service/agent/lib/Dhorder.php

@@ -1514,8 +1514,9 @@ class Dhorder
 
             foreach ($res[1] as $k1 => $v1) {
                 $d[$i] = 0;
+                list($type, $type_id) = explode('_', $k1);
                 if ($goods[$k1]) {
-                    if (strstr($v1,'卡')) {
+                    if ($type == 2 && strstr($v1,'卡')) {
                         $d[$i] = $goods[$k1]['cash']*$goods[$k1]['sell_num'] ? $goods[$k1]['cash']*$goods[$k1]['sell_num'] : 0;
                     } elseif($type == 1) {
                         if ($dh_order_ps) {