|
@@ -92,6 +92,8 @@ func (c *OrderController) Order_Add() {
|
|
|
ChildPid := c.GetString("ChildPid")
|
|
|
CouriesName := c.GetString("CouriesName")
|
|
|
CouriesId := c.GetString("CouriesId")
|
|
|
+ DeliveryAddress := c.GetString("DeliveryAddress")
|
|
|
+ ReceivingAddress := c.GetString("ReceivingAddress")
|
|
|
if len(EstimateStartTime) <= 0 || len(EstimateEndTime) <= 0 {
|
|
|
c.Data["json"] = lib.JSONS{Code: 207, Msg: "时间参数异常!"}
|
|
|
c.ServeJSON()
|
|
@@ -127,6 +129,8 @@ func (c *OrderController) Order_Add() {
|
|
|
ChildPid: ChildPid,
|
|
|
CouriesName: CouriesName,
|
|
|
CouriesId: CouriesId,
|
|
|
+ DeliveryAddress: DeliveryAddress,
|
|
|
+ ReceivingAddress: ReceivingAddress,
|
|
|
}
|
|
|
if var_.IsExpatriate == 2 {
|
|
|
if len(var_.Phone) < 0 {
|
|
@@ -209,6 +213,8 @@ func (c *OrderController) Order_Edit() {
|
|
|
T_State, _ := c.GetInt("T_State")
|
|
|
CouriesName := c.GetString("CouriesName")
|
|
|
CouriesId := c.GetString("CouriesId")
|
|
|
+ DeliveryAddress := c.GetString("DeliveryAddress")
|
|
|
+ ReceivingAddress := c.GetString("ReceivingAddress")
|
|
|
if len(EstimateStartTime) <= 0 || len(EstimateEndTime) <= 0 {
|
|
|
c.Data["json"] = lib.JSONS{Code: 207, Msg: "时间参数异常!"}
|
|
|
c.ServeJSON()
|
|
@@ -224,6 +230,12 @@ func (c *OrderController) Order_Edit() {
|
|
|
if len(WaybillNo) > 0 {
|
|
|
r.WaybillNo = WaybillNo
|
|
|
}
|
|
|
+ if len(DeliveryAddress) > 0 {
|
|
|
+ r.DeliveryAddress = DeliveryAddress
|
|
|
+ }
|
|
|
+ if len(ReceivingAddress) > 0 {
|
|
|
+ r.ReceivingAddress = ReceivingAddress
|
|
|
+ }
|
|
|
if len(T_sn) > 0 {
|
|
|
r.T_sn = T_sn
|
|
|
}
|