|
|
@@ -160,6 +160,7 @@ func OrderSaveUpdate(eg *xorm.Engine, pvd string, ordData *[]md.OrderInfo, opts |
|
|
|
_ = db.DbsOrderUpdate(eg, v.OrdId, &v) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if int(ords[v.PvdOid].ConfirmAt) > 0 && v.ConfirmAt != int(ords[v.PvdOid].ConfirmAt) { |
|
|
|
v.ConfirmAt = int(ords[v.PvdOid].ConfirmAt) |
|
|
|
_ = db.DbsOrderUpdate(eg, v.OrdId, &v) |
|
|
@@ -389,6 +390,10 @@ func OrderSaveUpdate(eg *xorm.Engine, pvd string, ordData *[]md.OrderInfo, opts |
|
|
|
} |
|
|
|
if v.State != 4 && ords[v.PvdOid].State != 4 { |
|
|
|
AcquisitionHookFirstOrder(eg, dbName, &v) |
|
|
|
if v.WaitSettleAt == 0 && v.State != 4 { |
|
|
|
v.WaitSettleAt = int(ords[v.PvdOid].WaitSettleAt) |
|
|
|
_ = db.DbsOrderUpdate(eg, v.OrdId, &v) |
|
|
|
} |
|
|
|
} |
|
|
|
if v.State == 4 && (v.Pvd == md.PVD_JD || v.Pvd == md.PVD_JDOwn) && ords[v.PvdOid].State != 4 { |
|
|
|
v.State = ords[v.PvdOid].State |
|
|
|