Browse Source

test

master
huangjiajun 1 year ago
parent
commit
19e4bc8283
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/task/svc/svc_playlet_order_settle.go

+ 1
- 1
app/task/svc/svc_playlet_order_settle.go View File

@@ -36,7 +36,7 @@ func PlayletOrderSettle() {
for _, v := range order { for _, v := range order {
fmt.Println("=================00") fmt.Println("=================00")
// 加锁 防止并发提取 // 加锁 防止并发提取
mutexKey := fmt.Sprintf("playlet_order_settle3:%s", v.CustomOid)
mutexKey := fmt.Sprintf("playlet_order_settle4:%s", v.CustomOid)
withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 1800, "NX") withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 1800, "NX")
if err != nil { if err != nil {
fmt.Println("=================0") fmt.Println("=================0")


Loading…
Cancel
Save