业务更名为撞车并切换crash路由
用户可见文案与页面/API路径改为撞车与crash,保留mohong表与权限码兼容;移动端入口去掉租/撞图标。
This commit is contained in:
@@ -111,7 +111,7 @@ func (r *Repository) CreateOrder(ctx context.Context, userID uint64, req CreateO
|
||||
if err := notification.Append(tx, notification.Entry{
|
||||
UserID: userID,
|
||||
Type: "order",
|
||||
Title: "摸大红订单已创建",
|
||||
Title: "撞车订单已创建",
|
||||
Content: "订单已创建,请在有效时间内完成支付。",
|
||||
BizType: "mohong_order",
|
||||
BizID: &orderID,
|
||||
@@ -311,8 +311,8 @@ func (r *Repository) AdminCompleteOrder(ctx context.Context, orderID uint64, rem
|
||||
return r.AdminFindOrder(ctx, orderID)
|
||||
}
|
||||
|
||||
// ConfirmPaidFromChannelTx 支付成功后推进摸大红订单:固化二维码快照与可复制文案。
|
||||
// 返回值固定为 0,兼容支付模块会话通知签名(摸大红无订单群)。
|
||||
// ConfirmPaidFromChannelTx 支付成功后推进撞车订单:固化二维码快照与可复制文案。
|
||||
// 返回值固定为 0,兼容支付模块会话通知签名(撞车无订单群)。
|
||||
func (r *Repository) ConfirmPaidFromChannelTx(tx *gorm.DB, orderID uint64) (uint64, error) {
|
||||
var order model.MohongOrder
|
||||
if err := tx.Clauses(clause.Locking{Strength: "UPDATE"}).First(&order, orderID).Error; err != nil {
|
||||
@@ -348,7 +348,7 @@ func (r *Repository) ConfirmPaidFromChannelTx(tx *gorm.DB, orderID uint64) (uint
|
||||
if err := notification.Append(tx, notification.Entry{
|
||||
UserID: order.UserID,
|
||||
Type: "order",
|
||||
Title: "摸大红订单支付成功",
|
||||
Title: "撞车订单支付成功",
|
||||
Content: "支付已完成,请在订单详情扫码联系客服,并复制订单信息发送。",
|
||||
BizType: "mohong_order",
|
||||
BizID: &orderIDCopy,
|
||||
@@ -358,7 +358,7 @@ func (r *Repository) ConfirmPaidFromChannelTx(tx *gorm.DB, orderID uint64) (uint
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
// NotifyNewConversation 兼容支付模块接口;摸大红不创建会话,空实现。
|
||||
// NotifyNewConversation 兼容支付模块接口;撞车不创建会话,空实现。
|
||||
func (r *Repository) NotifyNewConversation(conversationID uint64) {}
|
||||
|
||||
func (r *Repository) cancelPendingOrderTx(tx *gorm.DB, order *model.MohongOrder, reason string) error {
|
||||
|
||||
Reference in New Issue
Block a user