- don't unrolling order status.

This commit is contained in:
gazebo
2018-08-03 09:22:11 +08:00
parent fbef61c768
commit aedf0c7eeb
3 changed files with 28 additions and 14 deletions

View File

@@ -92,9 +92,9 @@ func (c *WaybillController) CreateWaybill(order *model.GoodsOrder) (err error) {
if billParams.CityCode, err = c.getDataCityCodeFromOrder(order); err == nil {
billParams.ReceiverLng, billParams.ReceiverLat, _ = jxutils.IntCoordinate2MarsStandard(order.ConsigneeLng, order.ConsigneeLat, order.CoordinateType)
addParams := map[string]interface{}{
"info": order.BuyerComment,
"origin_mark": model.VendorNames[order.VendorID],
"origin_mark_no": utils.Int2Str(order.VendorID),
"info": order.BuyerComment,
// "origin_mark": model.VendorNames[order.VendorID],
"origin_mark_no": fmt.Sprintf("#%d", order.OrderSeq),
}
_, err = api.DadaAPI.AddOrder(billParams, addParams)
}