1.优化回调通知接口,修复"网络请求失败"时通知子渠道缺少参数导致通知失败的问题;

This commit is contained in:
chenlin 2024-10-30 15:29:31 +08:00
parent 7f3ef982b0
commit ec84726547

View File

@ -108,6 +108,8 @@ func (e MiGuDeployService) SubscribeNotice(c *gin.Context) {
return
}
orderInfo.ChannelCode = inOrder.ChannelCode
orderInfo.OrderSerial = inOrder.OrderSerial
orderInfo.ChannelTradeNo = inOrder.ChannelTradeNo
} else { // 订单表有记录
if orderInfo.State != 1 {
err = e.Orm.Table("mg_order").Where("external_order_id = ?", orderId).Updates(map[string]interface{}{