Browse Source

更新

three
huangjiajun 11 months ago
parent
commit
4ad1432b1e
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      consume/zhios_order_hjy.go

+ 12
- 4
consume/zhios_order_hjy.go View File

@@ -164,12 +164,20 @@ func handleZhiosOrderHjy(msg []byte) error {
return nil return nil
} }
if ordData.State == 1 || ordData.State == 3 { if ordData.State == 1 || ordData.State == 3 {
isSettle, settleTime := GetHjyOrderCommission(eg, canalMsg.Mid, utils.IntToStr(ordData.HjyOid))
if isSettle == "1" {
ordData.State = 5
ordData.SettleAt = int(utils.TimeStdParseUnix(settleTime))
if int64(ordData.ConfirmAt) >= utils.TimeStdParseUnix("2023-11-01 00:00:00") {
isSettle, settleTime := GetHjyOrderCommission(eg, canalMsg.Mid, utils.IntToStr(ordData.HjyOid))
if isSettle == "1" {
ordData.State = 5
ordData.SettleAt = int(utils.TimeStdParseUnix(settleTime))
}
} }

} }
if int64(ordData.ConfirmAt) < utils.TimeStdParseUnix("2023-11-01 00:00:00") {
ordData.State = 5
ordData.SettleAt = ordData.ConfirmAt
}

fmt.Println(ordData) fmt.Println(ordData)
//加入分佣关系链 //加入分佣关系链
opts, commissionOpts, _ := svc.GetAllPlan(eg, canalMsg.Mid) opts, commissionOpts, _ := svc.GetAllPlan(eg, canalMsg.Mid)


Loading…
Cancel
Save