feat(sms): 新增节点短信提醒(审核未通过/被租用需辅助/上架未成交)
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
listingpkg "hfb_sys/backend/internal/modules/listing"
|
||||
"hfb_sys/backend/internal/modules/notification"
|
||||
"hfb_sys/backend/internal/modules/rentergrowth"
|
||||
smsnode "hfb_sys/backend/internal/modules/sms"
|
||||
"hfb_sys/backend/internal/processlog"
|
||||
|
||||
"gorm.io/datatypes"
|
||||
@@ -406,6 +407,17 @@ func (r *Repository) ConfirmPaidFromChannelTx(tx *gorm.DB, orderID uint64) (uint
|
||||
); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
// 节点短信:账号被租用、需要号主辅助登录,提醒及时处理避免被强制结束订单。
|
||||
// 代管订单由客服提交交接说明,不触达号主,因此只在这个分支入队。
|
||||
if _, err := smsnode.Enqueue(tx, smsnode.Entry{
|
||||
UserID: order.OwnerID,
|
||||
Node: smsnode.NodeOrderHandoffAssist,
|
||||
BizType: "order",
|
||||
BizID: orderID,
|
||||
DistributionSiteID: order.DistributionSiteID,
|
||||
}); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
}
|
||||
if err := tx.Save(order).Error; err != nil {
|
||||
return 0, err
|
||||
|
||||
Reference in New Issue
Block a user