rabin 3 éve
szülő
commit
27e6d9b45b
1 módosított fájl, 2 hozzáadás és 1 törlés
  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) {