This commit is contained in:
@@ -35,6 +35,9 @@ func (h *ShopCommissionHandler) ListFundSummary(c *fiber.Ctx) error {
|
||||
if err := c.QueryParser(&req); err != nil {
|
||||
return errors.New(errors.CodeInvalidParam)
|
||||
}
|
||||
if c.Context().QueryArgs().Has("shop_id") && (req.ShopID == nil || *req.ShopID == 0) {
|
||||
return errors.New(errors.CodeInvalidParam)
|
||||
}
|
||||
|
||||
if h.fundSummaryQuery == nil {
|
||||
return errors.New(errors.CodeInternalError, "代理商资金概况查询能力未配置")
|
||||
|
||||
Reference in New Issue
Block a user