From 879ef026346960bad7f16f470946e624bf8d65cb Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 24 Apr 2024 15:13:03 +0800 Subject: [PATCH] update --- app/customer/hdl/hdl_self_support_for_school_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/customer/hdl/hdl_self_support_for_school_order.go b/app/customer/hdl/hdl_self_support_for_school_order.go index d09902b..61656ed 100644 --- a/app/customer/hdl/hdl_self_support_for_school_order.go +++ b/app/customer/hdl/hdl_self_support_for_school_order.go @@ -54,8 +54,8 @@ func SelfSupportForSchoolOrderList(c *gin.Context) { merchantWithDeviceListMapping[v.DeviceSn] = merchantListMapping[v.MerchantId] } - for _, v := range list { - v.MerchantName = merchantWithDeviceListMapping[v.DeviceSn].Name + for i, v := range list { + list[i].MerchantName = merchantWithDeviceListMapping[v.DeviceSn].Name } utils.FilePutContents("SelfSupportForSchoolOrderList", utils.SerializeStr(list))