|
|
@@ -140,7 +140,7 @@ func handleZhiosOrderHjy(msg []byte) error { |
|
|
|
defer sess.Close() |
|
|
|
sess.Begin() |
|
|
|
|
|
|
|
ordData, err := db.OrderListByPvdOid(sess, canalMsg.Oid) |
|
|
|
ordData, err := db.OrderListByhjyOid(sess, canalMsg.Oid) |
|
|
|
if err != nil || ordData == nil { |
|
|
|
return nil |
|
|
|
} |
|
|
@@ -163,7 +163,7 @@ func handleZhiosOrderHjy(msg []byte) error { |
|
|
|
sess.Commit() |
|
|
|
return nil |
|
|
|
} |
|
|
|
isSettle, settleTime := GetHjyOrderCommission(eg, canalMsg.Mid, utils.Int64ToStr(ordData.OrdId)) |
|
|
|
isSettle, settleTime := GetHjyOrderCommission(eg, canalMsg.Mid, utils.IntToStr(ordData.HjyOid)) |
|
|
|
if isSettle == "1" { |
|
|
|
ordData.State = 5 |
|
|
|
ordData.SettleAt = int(utils.TimeStdParseUnix(settleTime)) |
|
|
|