fix
This commit is contained in:
parent
8425a19b39
commit
633231b997
|
@ -43,6 +43,17 @@ func CreateOrder(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
item, err := zhilianServ.GetByOutTradeNo(request.OutTradeNo, request.MerchantId)
|
||||
if err != nil {
|
||||
common.Error(c, 400, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
if item != nil {
|
||||
common.Error(c, 400, "订单已存在")
|
||||
return
|
||||
}
|
||||
|
||||
orders := &orderMod.Orders{
|
||||
OutTradeNo: request.OutTradeNo,
|
||||
ProductId: request.ProductId,
|
||||
|
|
Loading…
Reference in New Issue