From 1ed91f6f9aafb3143d6e8ce6f044e1f10a1f8f50 Mon Sep 17 00:00:00 2001 From: Administrator <1269936630@qq.com> Date: Mon, 15 Jun 2026 15:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=88=86=E9=85=8D=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/split_account_config.go | 5 +++-- service/split_account_deduction_log.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/service/split_account_config.go b/service/split_account_config.go index 9d81037..282e1bf 100644 --- a/service/split_account_config.go +++ b/service/split_account_config.go @@ -132,9 +132,10 @@ func (s *SplitAccountConfigService) UpdateSplitAccountConfig(req systemReq.Updat if err := json.Unmarshal([]byte(req.RuleValue), &temp); err != nil { return utils.NewError("分账规则配置格式错误,不是合法的JSON") } - ruleValue, _ := json.Marshal(temp) - updateData["rule_value"] = ruleValue + ruleBytes, _ := json.Marshal(temp) + updateData["rule_value"] = datatypes.JSON(ruleBytes) } + if req.Status >= 0 { updateData["status"] = req.Status } diff --git a/service/split_account_deduction_log.go b/service/split_account_deduction_log.go index f33877c..0bcd966 100644 --- a/service/split_account_deduction_log.go +++ b/service/split_account_deduction_log.go @@ -142,7 +142,7 @@ func (s *SplitAccountDeductionLogService) UpdateSplitAccountDeductionLog(req sys return utils.NewError("扣款规则格式错误,不是合法的JSON") } deductionDetails, _ := json.Marshal(temp) - updateData["deduction_details"] = deductionDetails + updateData["deduction_details"] = datatypes.JSON(deductionDetails) } if req.TotalAmount > 0 { updateData["total_amount"] = req.TotalAmount