Commit 30865711 authored by shajiaiming's avatar shajiaiming

fix

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