Browse Source

更新

master
huangjiajun 5 months ago
parent
commit
9849353522
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      consume/zhios_order_total_second.go

+ 4
- 1
consume/zhios_order_total_second.go View File

@@ -134,6 +134,7 @@ func handleZhiosOrderTotalSecond(msg []byte) error {
} }
} }
isupdate := 0 isupdate := 0
before := userStatistics.Amount
if ordData.State == 4 && ordData.IsTotal == 1 { if ordData.State == 4 && ordData.IsTotal == 1 {
isupdate = 1 isupdate = 1
isTotal = 2 isTotal = 2
@@ -151,6 +152,8 @@ func handleZhiosOrderTotalSecond(msg []byte) error {
} }
if update == 0 && isupdate == 1 { if update == 0 && isupdate == 1 {
sess.Rollback() sess.Rollback()
fmt.Println("================zhe", before, utils.SerializeStr(userStatistics))
fmt.Println("================zhe", utils.SerializeStr(ordData))
return errors.New("失败2") return errors.New("失败2")
} }
if v.CreateAt > 1711086661 { if v.CreateAt > 1711086661 {
@@ -285,7 +288,7 @@ func handleZhiosOrderTotalSecond(msg []byte) error {
} }
if has == 0 { if has == 0 {
sess.Rollback() sess.Rollback()
return errors.New("失败")
return errors.New("失败a")
} }
} }
if ordData.State == 4 && (ordData.IsTotal == 1 || ordData.IsTotal == 3) { if ordData.State == 4 && (ordData.IsTotal == 1 || ordData.IsTotal == 3) {


Loading…
Cancel
Save