Commit fa52eed2 authored by shajiaiming's avatar shajiaiming

fix

parent e0f04195
...@@ -122,7 +122,11 @@ func AddWalletCoinRelationCoinRelation(c *gin.Context) { ...@@ -122,7 +122,11 @@ func AddWalletCoinRelationCoinRelation(c *gin.Context) {
} }
} }
if is_exist == false { if is_exist == false {
if "[]" == coin_exist.PlatformId {
coinService.PlatformId = strings.Replace(coin_exist.PlatformId, "]", util.ToString(coin_relation.PlatformId), -1) + "]"
} else {
coinService.PlatformId = strings.Replace(coin_exist.PlatformId, "]", ",", -1) + strconv.Itoa(coin_relation.PlatformId) + "]" coinService.PlatformId = strings.Replace(coin_exist.PlatformId, "]", ",", -1) + strconv.Itoa(coin_relation.PlatformId) + "]"
}
coinService.UpdateCoinRelation() coinService.UpdateCoinRelation()
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment