zjxpcyc 6 年前
父节点
当前提交
10cc7efaaf
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      service/events/giveCoupon.go

+ 1
- 2
service/events/giveCoupon.go 查看文件

@@ -25,9 +25,8 @@ var giveCoupon = func(e tinyevent.Event) error {
25 25
 		utils.LogError("注册送券失败, 没有用户信息")
26 26
 		return errors.New("注册送券失败, 没有用户信息")
27 27
 	}
28
-	dtRaw := e.Payload.(map[string]interface{})
29 28
 
30
-	cust := dtRaw["customer"].(model.TaCustomer)
29
+	cust := e.Payload.(model.TaCustomer)
31 30
 	caseID := cust.RecommendCase
32 31
 	orgID := cust.OrgId
33 32