This commit is contained in:
邹宗楠
2026-03-30 17:24:04 +08:00
parent 9c106cd511
commit 29de059c4f
3 changed files with 178 additions and 29 deletions

View File

@@ -188,10 +188,14 @@ func onTLpayFinished(call *tonglianpayapi.CallBackResult) (err error) {
Openid: authList[0].AuthID,
},
}
if err = api.WeixinMiniAPI2.SNSSendGoodsOrder(param); err != nil {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "物料发货推送", fmt.Sprintf("物料商城下单,发货错误:%s,请注意查看,err:%s,%s", order.VendorOrderID, err.Error(), utils.Format4Output(param, false)))
}
jxutils.CallMsgHandlerAsync(func() {
select {
case <-time.After(2 * time.Second):
if err = api.WeixinMiniAPI2.SNSSendGoodsOrder(param); err != nil {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "物料发货推送", fmt.Sprintf("物料商城下单,发货错误:%s,请注意查看,err:%s,%s", order.VendorOrderID, err.Error(), utils.Format4Output(param, false)))
}
}
}, call.ChnlTrxID)
}
}