|
@@ -93,11 +93,13 @@ func handleZhiosExpressOrderFail(msg []byte) error { |
|
|
ord.Status = "已退回" |
|
|
ord.Status = "已退回" |
|
|
ord.IsRefund = 1 |
|
|
ord.IsRefund = 1 |
|
|
ord.RefundTime = time.Now() |
|
|
ord.RefundTime = time.Now() |
|
|
officialOrd.Status = "已退回" |
|
|
|
|
|
officialOrd.IsRefund = 1 |
|
|
|
|
|
officialOrd.RefundTime = time.Now() |
|
|
|
|
|
|
|
|
if ord.Own != 1 { |
|
|
|
|
|
officialOrd.Status = "已退回" |
|
|
|
|
|
officialOrd.IsRefund = 1 |
|
|
|
|
|
officialOrd.RefundTime = time.Now() |
|
|
|
|
|
db.Db.Where("oid=?", officialOrd.Oid).Update(officialOrd) |
|
|
|
|
|
} |
|
|
eg.Where("oid=?", ord.Oid).Update(ord) |
|
|
eg.Where("oid=?", ord.Oid).Update(ord) |
|
|
db.Db.Where("oid=?", officialOrd.Oid).Update(officialOrd) |
|
|
|
|
|
svc.DealMoneyWithEg(eg, ord.Uid, ord.Money, 56, utils.StrToInt64(ord.Oid), 0, 0, "快递退款", "express", 0) |
|
|
svc.DealMoneyWithEg(eg, ord.Uid, ord.Money, 56, utils.StrToInt64(ord.Oid), 0, 0, "快递退款", "express", 0) |
|
|
if ord.AgentPay == 1 { |
|
|
if ord.AgentPay == 1 { |
|
|
agentDeduct(ord.Oid, base, ord.AgentPrice) |
|
|
agentDeduct(ord.Oid, base, ord.AgentPrice) |
|
|