This commit is contained in:
@@ -35,15 +35,6 @@ func (l *GetOrderListLogic) GetOrderList(req *types.GetOrderListRequest) (resp *
|
||||
resp = &types.GetOrderListResponse{}
|
||||
resp.List = make([]types.Order, 0)
|
||||
tool.DeepCopy(&resp.List, list)
|
||||
for index := range resp.List {
|
||||
resp.List[index].Method = normalizeOrderMethod(resp.List[index].Method, resp.List[index].Payment.Platform)
|
||||
if resp.List[index].Payment.Platform == "" {
|
||||
resp.List[index].Payment.Platform = resp.List[index].Method
|
||||
}
|
||||
if resp.List[index].Payment.Name == "" {
|
||||
resp.List[index].Payment.Name = resp.List[index].Method
|
||||
}
|
||||
}
|
||||
resp.Total = total
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user