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()
|
now := time.Now().Unix()
|
||||||
status := "pending_payment"
|
status := "pending_payment"
|
||||||
searchText := consumerName + " " + playerName + " " + shopName + " " + req.Note
|
|
||||||
|
|
||||||
addReq := &orderservice.AddOrdersReq{
|
addReq := &orderservice.AddOrdersReq{
|
||||||
Id: orderID,
|
Id: orderID,
|
||||||
@@ -103,7 +102,6 @@ func (l *CreateOrderLogic) CreateOrder(req *types.CreateOrderReq) (resp *types.C
|
|||||||
ServiceSnapshot: string(snapshotBytes),
|
ServiceSnapshot: string(snapshotBytes),
|
||||||
Status: &status,
|
Status: &status,
|
||||||
TotalPrice: totalPriceStr,
|
TotalPrice: totalPriceStr,
|
||||||
SearchText: &searchText,
|
|
||||||
CreatedAt: &now,
|
CreatedAt: &now,
|
||||||
UpdatedAt: &now,
|
UpdatedAt: &now,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,9 +76,6 @@ func (l *AddOrdersLogic) AddOrders(in *pb.AddOrdersReq) (*pb.AddOrdersResp, erro
|
|||||||
if in.TimeoutJobId != nil {
|
if in.TimeoutJobId != nil {
|
||||||
creator = creator.SetTimeoutJobID(*in.TimeoutJobId)
|
creator = creator.SetTimeoutJobID(*in.TimeoutJobId)
|
||||||
}
|
}
|
||||||
if in.SearchText != nil {
|
|
||||||
creator = creator.SetSearchText(*in.SearchText)
|
|
||||||
}
|
|
||||||
if createdAt := unixPtr(in.CreatedAt); createdAt != nil {
|
if createdAt := unixPtr(in.CreatedAt); createdAt != nil {
|
||||||
creator = creator.SetCreatedAt(*createdAt)
|
creator = creator.SetCreatedAt(*createdAt)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user