1
This commit is contained in:
@@ -372,7 +372,7 @@ func getOrderPrice(order *model.GoodsOrder) (orderPrice *uuptapi.GetOrderPriceRe
|
||||
}
|
||||
}
|
||||
|
||||
func OnWaybillMsg(req *uuptapi.WaybillCallbackParam) (resp *uuptapi.CallbackResponse) {
|
||||
func OnWaybillMsg(req *uuptapi.WaybillCallbackParam, good *model.GoodsOrder) (resp *uuptapi.CallbackResponse) {
|
||||
param := &model.Waybill{
|
||||
VendorOrderID: req.OriginID,
|
||||
VendorWaybillID: req.OrderCode,
|
||||
@@ -383,11 +383,7 @@ func OnWaybillMsg(req *uuptapi.WaybillCallbackParam) (resp *uuptapi.CallbackResp
|
||||
StatusTime: time.Now(),
|
||||
Remark: req.StateText,
|
||||
}
|
||||
var good *model.GoodsOrder
|
||||
var reallyPrice int64
|
||||
sql := `SELECT * FROM goods_order WHERE vendor_order_id = ? ORDER BY order_created_at DESC LIMIT 1 OFFSET 0`
|
||||
sqlParams := []interface{}{req.OriginID}
|
||||
dao.GetRow(dao.GetDB(), &good, sql, sqlParams)
|
||||
param.OrderVendorID = good.VendorID
|
||||
//查询运单价格
|
||||
uuPrice, err := api.UuAPI.GetOrderDetail(req.OrderCode)
|
||||
|
||||
Reference in New Issue
Block a user