1.SubmitOrder接口优化,记录订单表失败不报错;回调通知的时候会做判断,未插入会主动记录;external_order_id添加数据库唯一约束,避免重复插入订单表;
This commit is contained in:
parent
1bb18a58a5
commit
ee6746e9d8
|
@ -215,8 +215,8 @@ func (e MiGuDeployService) SubmitOrder(c *gin.Context) {
|
||||||
err = e.Orm.Create(&orderInfo).Error
|
err = e.Orm.Create(&orderInfo).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Info("Create MgTransactionLog err:", err)
|
logger.Info("Create MgTransactionLog err:", err)
|
||||||
app.Error(c, http.StatusBadRequest, err, err.Error())
|
//app.Error(c, http.StatusBadRequest, err, err.Error())
|
||||||
return
|
//return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user