Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
e3629d8abc
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      app/hdl/hdl_index.go

+ 5
- 0
app/hdl/hdl_index.go View File

@@ -33,9 +33,14 @@ func Base(c *gin.Context) {
if data.CompanyAbbreviation != "" { if data.CompanyAbbreviation != "" {
name = data.CompanyAbbreviation name = data.CompanyAbbreviation
} }
state := "0"
if data.State == 2 {
state = "1"
}
res := map[string]string{ res := map[string]string{
"account_id": utils.IntToStr(user.AgentId), "account_id": utils.IntToStr(user.AgentId),
"name": name, "name": name,
"state": state,
"account": user.Username, "account": user.Username,
"settle_type": utils.IntToStr(data.SettlementType), "settle_type": utils.IntToStr(data.SettlementType),
"settle_type_str": settleType[data.SettlementType], "settle_type_str": settleType[data.SettlementType],


Loading…
Cancel
Save