Commit 30865711 authored by shajiaiming's avatar shajiaiming

fix

parent 9f0dbf1c
...@@ -41,12 +41,24 @@ func GetTransactionFee(c *gin.Context) { ...@@ -41,12 +41,24 @@ func GetTransactionFee(c *gin.Context) {
handler.SendResponse(c, errno.InternalServerError, nil) handler.SendResponse(c, errno.InternalServerError, nil)
return return
} }
feeService := fee_service.Fee{ feeService := fee_service.Fee{}
if name == "BBB" {
feeService = fee_service.Fee{
PlatformId: platform_id, PlatformId: platform_id,
Cid: coins[1].ID, Cid: coins[1].ID,
PageNum: util.GetPage(c), PageNum: util.GetPage(c),
PageSize: util.GetLimit(c), PageSize: util.GetLimit(c),
} }
} else {
feeService = fee_service.Fee{
PlatformId: platform_id,
Cid: coins[0].ID,
PageNum: util.GetPage(c),
PageSize: util.GetLimit(c),
}
}
total_fee, err_fee := feeService.Count() total_fee, err_fee := feeService.Count()
if err_fee != nil || 0 == total_fee { if err_fee != nil || 0 == total_fee {
......
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