|
@@ -33,10 +33,15 @@ 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.MediumId), |
|
|
"account_id": utils.IntToStr(user.MediumId), |
|
|
"name": name, |
|
|
"name": name, |
|
|
"account": user.Username, |
|
|
"account": user.Username, |
|
|
|
|
|
"state": state, |
|
|
"settle_type": utils.IntToStr(data.SettlementType), |
|
|
"settle_type": utils.IntToStr(data.SettlementType), |
|
|
"settle_type_str": settleType[data.SettlementType], |
|
|
"settle_type_str": settleType[data.SettlementType], |
|
|
} |
|
|
} |
|
|