Skip to content

Commit

Permalink
feat: ApiCodeCouponUnpaid add cid response
Browse files Browse the repository at this point in the history
  • Loading branch information
sjatsh committed Nov 6, 2023
1 parent e29372d commit 1db5a68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http_server/handle/coupon_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ func (h *HttpHandle) couponCreateParamsCheck(req *ReqCouponCreate, apiResp *api_
}
if unpaidSetInfo.Id > 0 {
apiResp.ApiRespErr(api_code.ApiCodeCouponUnpaid, "have unpaid coupon order")
apiResp.Data = map[string]interface{}{
"cid": unpaidSetInfo.Cid,
}
return nil
}
return res
Expand Down

0 comments on commit 1db5a68

Please sign in to comment.