Explorar el Código

fix(order):修复现金+VR支付类型中的价格数据类型

- 将现金+VR支付方式中的价格字段从数值类型转换为字符串类型
-保持其他支付方式的数据结构不变
- 确保支付数据在序列化时的一致性
shichen hace 9 meses
padre
commit
5491dc02c6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/common/repositories/store/order/StoreOrderRepository.php

+ 1 - 1
app/common/repositories/store/order/StoreOrderRepository.php

@@ -2376,7 +2376,7 @@ class StoreOrderRepository extends BaseRepository
2376 2376
 
2377 2377
                             ['type' => 'a1', 'price' => $orderpri, 'other' => 0, 'note' => "VR"],//VR支付
2378 2378
                             ['type' => 'a2', 'price' => $orderpri, 'other' => 0, 'note' => "现金"],//现金支付
2379
-                            ['type' => 'a3', 'price' => $vr_payment, 'other' => $cash_payment, 'note' => "现金+VR"],//现金支付
2379
+                            ['type' => 'a3', 'price' => strval($vr_payment), 'other' => $cash_payment, 'note' => "现金+VR"],//现金支付
2380 2380
                         ];
2381 2381
                     }
2382 2382