From 8658c99e24f95b3fa06cb7446c1ff55ccd2b5201 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 19 Sep 2024 14:07:30 +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 --- app/hdl/hdl_index.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/hdl/hdl_index.go b/app/hdl/hdl_index.go index 9f6d067..bb14fd5 100644 --- a/app/hdl/hdl_index.go +++ b/app/hdl/hdl_index.go @@ -33,10 +33,15 @@ func Base(c *gin.Context) { if data.CompanyAbbreviation != "" { name = data.CompanyAbbreviation } + state := "0" + if data.State == 2 { + state = "1" + } res := map[string]string{ "account_id": utils.IntToStr(user.MediumId), "name": name, "account": user.Username, + "state": state, "settle_type": utils.IntToStr(data.SettlementType), "settle_type_str": settleType[data.SettlementType], }