This commit is contained in:
Hiven 2023-07-24 10:10:26 +08:00
parent 6b3ad339c6
commit 3201f4d26d

View File

@ -6,7 +6,8 @@ import (
"fusenapi/model/gmodel"
"fusenapi/utils/auth"
"fusenapi/utils/basic"
"fusenapi/utils/configs"
//"fusenapi/utils/configs"
"fusenapi/utils/format"
"fusenapi/utils/order"
"math"
@ -86,10 +87,10 @@ func (l *UserOrderListLogic) UserOrderList(req *types.UserOrderListReq, userinfo
var respList []types.Items
if listResLen > 0 {
// 获取订单时间配置
orderTimeConfig, err := configs.GetOrderTimeConfig(l.ctx, l.svcCtx.MysqlConn)
if err != nil {
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to get config time info")
}
// orderTimeConfig, err := configs.GetOrderTimeConfig(l.ctx, l.svcCtx.MysqlConn)
// if err != nil {
// return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to get config time info")
// }
// 数据处理
for _, item := range listRes {
@ -134,8 +135,8 @@ func (l *UserOrderListLogic) UserOrderList(req *types.UserOrderListReq, userinfo
ArrivalTime: *fsOrderAffiliateInfo.SureTime,
RecevieTime: *fsOrderAffiliateInfo.SureTime,
OrderCtime: *item.Ctime,
WebSetTimeInfo: orderTimeConfig,
OrderCtime: *item.Ctime,
//WebSetTimeInfo: orderTimeConfig,
})
// 流程控制