From 673ac2e65031a5dc48f781afbe6a1579189dfa22 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 4 Mar 2024 17:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svc/public_platoon_relate_commission.go | 7 +++++++ svc/small_public_platoon_relate_commission.go | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/svc/public_platoon_relate_commission.go b/svc/public_platoon_relate_commission.go index f09c416..992769e 100644 --- a/svc/public_platoon_relate_commission.go +++ b/svc/public_platoon_relate_commission.go @@ -227,6 +227,13 @@ func BatchGetPublicPlatoonRelateCommissionByOrderLevel(engine *xorm.Engine, mast rateList, ok := v2["rate_list"].(map[string]interface{}) if ok { UserLvUpPublicPlatoonList = rateList + } else { + rateList, ok := v2["rate_list"].([]interface{}) + if ok { + for k, v := range rateList { + UserLvUpPublicPlatoonList[zhios_order_relate_utils.AnyToString(k)] = v + } + } } } } diff --git a/svc/small_public_platoon_relate_commission.go b/svc/small_public_platoon_relate_commission.go index 81675bb..1d2a549 100644 --- a/svc/small_public_platoon_relate_commission.go +++ b/svc/small_public_platoon_relate_commission.go @@ -441,6 +441,13 @@ func BatchSmallGetPublicPlatoonRelateCommissionLevel(engine *xorm.Engine, master rateList, ok := v2["rate_list"].(map[string]interface{}) if ok { UserLvUpPublicPlatoonList = rateList + } else { + rateList, ok := v2["rate_list"].([]interface{}) + if ok { + for k, v := range rateList { + UserLvUpPublicPlatoonList[zhios_order_relate_utils.AnyToString(k)] = v + } + } } } }