fix: 订单创建不再写入 search_text
This commit is contained in:
@@ -92,7 +92,6 @@ func (l *CreateOrderLogic) CreateOrder(req *types.CreateOrderReq) (resp *types.C
|
||||
}
|
||||
now := time.Now().Unix()
|
||||
status := "pending_payment"
|
||||
searchText := consumerName + " " + playerName + " " + shopName + " " + req.Note
|
||||
|
||||
addReq := &orderservice.AddOrdersReq{
|
||||
Id: orderID,
|
||||
@@ -103,7 +102,6 @@ func (l *CreateOrderLogic) CreateOrder(req *types.CreateOrderReq) (resp *types.C
|
||||
ServiceSnapshot: string(snapshotBytes),
|
||||
Status: &status,
|
||||
TotalPrice: totalPriceStr,
|
||||
SearchText: &searchText,
|
||||
CreatedAt: &now,
|
||||
UpdatedAt: &now,
|
||||
}
|
||||
|
||||
@@ -76,9 +76,6 @@ func (l *AddOrdersLogic) AddOrders(in *pb.AddOrdersReq) (*pb.AddOrdersResp, erro
|
||||
if in.TimeoutJobId != nil {
|
||||
creator = creator.SetTimeoutJobID(*in.TimeoutJobId)
|
||||
}
|
||||
if in.SearchText != nil {
|
||||
creator = creator.SetSearchText(*in.SearchText)
|
||||
}
|
||||
if createdAt := unixPtr(in.CreatedAt); createdAt != nil {
|
||||
creator = creator.SetCreatedAt(*createdAt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user