...
|
...
|
@@ -415,6 +415,7 @@ func (c *OrderInfoController) UpdateOrderReal() { |
|
|
}
|
|
|
var orderDataReturn *domain.OrderBase
|
|
|
saleDate, err := time.ParseInLocation("2006-01-02 15:04:05", param.SaleDate, time.Local)
|
|
|
saleDateWithTz := time.Date(saleDate.Year(), saleDate.Month(), saleDate.Day(), time.Now().Hour(), time.Now().Minute(), time.Now().Second(), time.Now().Nanosecond(), time.Local)
|
|
|
|
|
|
if err != nil {
|
|
|
e := lib.ThrowError(lib.ARG_ERROR, err.Error())
|
...
|
...
|
@@ -422,9 +423,9 @@ func (c *OrderInfoController) UpdateOrderReal() { |
|
|
return
|
|
|
}
|
|
|
if param.Id == 0 {
|
|
|
orderDataReturn, err = c.addOrderReal(param, saleDate)
|
|
|
orderDataReturn, err = c.addOrderReal(param, saleDateWithTz)
|
|
|
} else {
|
|
|
err = c.editOrderReal(param, saleDate)
|
|
|
err = c.editOrderReal(param, saleDateWithTz)
|
|
|
}
|
|
|
if err != nil {
|
|
|
c.ResponseError(err)
|
...
|
...
|
|