作者 陈志颖

fix:时间layout修改

@@ -362,9 +362,9 @@ func (c *OrderInfoController) GetOrderReal() { @@ -362,9 +362,9 @@ func (c *OrderInfoController) GetOrderReal() {
362 "orderNumCountControl": "", 362 "orderNumCountControl": "",
363 "orderAmountAdjustmentCountControl": "", 363 "orderAmountAdjustmentCountControl": "",
364 "product": allGoods, 364 "product": allGoods,
365 - "create_time": orderinfo.CreateTime.Local().Format("2006-01-02 15:04:06"),  
366 - "update_time": orderinfo.UpdateTime.Local().Format("2006-01-02 15:04:06"),  
367 - "saleDate": orderinfo.SaleDate.Local().Format("2006-01-02 15:04:06"), 365 + "create_time": orderinfo.CreateTime.Local().Format("2006-01-02 15:04:05"),
  366 + "update_time": orderinfo.UpdateTime.Local().Format("2006-01-02 15:04:05"),
  367 + "saleDate": orderinfo.SaleDate.Local().Format("2006-01-02 15:04:05"),
368 "partnerCategoryId": orderinfo.PartnerCategory.Id, 368 "partnerCategoryId": orderinfo.PartnerCategory.Id,
369 "partnerCategoryName": orderinfo.PartnerCategory.Name, 369 "partnerCategoryName": orderinfo.PartnerCategory.Name,
370 } 370 }
@@ -414,7 +414,8 @@ func (c *OrderInfoController) UpdateOrderReal() { @@ -414,7 +414,8 @@ func (c *OrderInfoController) UpdateOrderReal() {
414 return 414 return
415 } 415 }
416 var orderDataReturn *domain.OrderBase 416 var orderDataReturn *domain.OrderBase
417 - saleDate, err := time.ParseInLocation("2006-01-02 15:04:06", param.SaleDate, time.Local) 417 + saleDate, err := time.ParseInLocation("2006-01-02 15:04:05", param.SaleDate, time.Local)
  418 +
418 if err != nil { 419 if err != nil {
419 e := lib.ThrowError(lib.ARG_ERROR, err.Error()) 420 e := lib.ThrowError(lib.ARG_ERROR, err.Error())
420 c.ResponseError(e) 421 c.ResponseError(e)