From e3629d8abc848140fc05fd40ffda175a6819a2cb Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sun, 29 Sep 2024 16:29:07 +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 569205b..539a462 100644 --- a/app/hdl/hdl_index.go +++ b/app/hdl/hdl_index.go @@ -33,9 +33,14 @@ 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.AgentId), "name": name, + "state": state, "account": user.Username, "settle_type": utils.IntToStr(data.SettlementType), "settle_type_str": settleType[data.SettlementType],