Bladeren bron

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/services into dev

zjxpcyc 6 jaren geleden
bovenliggende
commit
22699ee2e6
4 gewijzigde bestanden met toevoegingen van 43 en 3 verwijderingen
  1. 1
    1
      conf/log.conf
  2. 5
    0
      controllers/vipcard/vipcard.go
  3. 35
    0
      log/common.log
  4. 2
    2
      service/customer/customer.go

+ 1
- 1
conf/log.conf Bestand weergeven

@@ -1,4 +1,4 @@
1 1
 [common]
2
-filename="E:\\GoProjects\\src\\spaceofcheng\\services\\log\\common.log"
2
+filename="E:\\GoProject\\src\\spaceofcheng\\services\\log\\common.log"
3 3
 # log level "emergency", "alert", "critical", "error", "warning", "notice", "info", "debug"
4 4
 level="debug"

+ 5
- 0
controllers/vipcard/vipcard.go Bestand weergeven

@@ -1,6 +1,7 @@
1 1
 package vipcard
2 2
 
3 3
 import (
4
+	"errors"
4 5
 	"spaceofcheng/services/controllers"
5 6
 	"spaceofcheng/services/models"
6 7
 	"spaceofcheng/services/models/model"
@@ -72,6 +73,10 @@ func (c *VipcardController) UserCharge() {
72 73
 		c.ResponseError(err)
73 74
 	}
74 75
 
76
+	if customer == nil {
77
+		c.ResponseError(errors.New("没有查询到用户数据!"))
78
+	}
79
+
75 80
 	salesid := c.GetString("salesid")
76 81
 	salesname := c.GetString("salesname")
77 82
 

+ 35
- 0
log/common.log Bestand weergeven

@@ -88,3 +88,38 @@
88 88
 2018/09/17 03:04:16 [E] 不存在课程信息!
89 89
 2018/09/17 03:05:37 [E] 解析 Token 失败: token contains an invalid number of segments
90 90
 2018/09/17 03:07:51 [E] 解析 Token 失败: token contains an invalid number of segments
91
+2018/09/18 09:54:23 [E] 解析用户微信映射信息失败: json: cannot unmarshal string into Go struct field WechatUser.sex of type float64
92
+2018/09/18 09:56:14 [E] 用户没有设置默认案场
93
+2018/09/18 09:56:20 [E] 用户没有设置默认案场
94
+2018/09/18 09:56:20 [E] 用户没有设置默认案场
95
+2018/09/18 09:56:21 [E] 用户没有设置默认案场
96
+2018/09/18 09:56:21 [E] 用户没有设置默认案场
97
+2018/09/18 09:56:33 [E] 用户没有设置默认案场
98
+2018/09/18 09:56:33 [E] 用户没有设置默认案场
99
+2018/09/18 09:56:33 [E] 用户没有设置默认案场
100
+2018/09/18 09:57:45 [E] 用户没有设置默认案场
101
+2018/09/18 09:57:45 [E] 用户没有设置默认案场
102
+2018/09/18 09:58:36 [E] 用户没有设置默认案场
103
+2018/09/18 09:58:36 [E] 用户没有设置默认案场
104
+2018/09/18 09:58:36 [E] 用户没有设置默认案场
105
+2018/09/18 09:58:49 [E] 用户没有设置默认案场
106
+2018/09/18 09:58:49 [E] 用户没有设置默认案场
107
+2018/09/18 09:58:50 [E] 用户没有设置默认案场
108
+2018/09/18 09:59:13 [E] 用户没有设置默认案场
109
+2018/09/18 09:59:13 [E] 用户没有设置默认案场
110
+2018/09/18 09:59:13 [E] 用户没有设置默认案场
111
+2018/09/18 10:01:14 [E] 用户没有设置默认案场
112
+2018/09/18 10:01:14 [E] 用户没有设置默认案场
113
+2018/09/18 10:01:14 [E] 用户没有设置默认案场
114
+2018/09/18 10:01:54 [E] 用户没有设置默认案场
115
+2018/09/18 10:01:54 [E] 用户没有设置默认案场
116
+2018/09/18 10:01:55 [E] 用户没有设置默认案场
117
+2018/09/18 10:02:29 [E] 用户没有设置默认案场
118
+2018/09/18 10:02:29 [E] 用户没有设置默认案场
119
+2018/09/18 10:03:02 [E] 用户没有设置默认案场
120
+2018/09/18 10:03:02 [E] 用户没有设置默认案场
121
+2018/09/18 10:03:02 [E] 用户没有设置默认案场
122
+2018/09/18 10:04:34 [E] 用户没有设置默认案场
123
+2018/09/18 10:04:34 [E] 用户没有设置默认案场
124
+2018/09/18 10:04:34 [E] 用户没有设置默认案场
125
+2018/09/18 10:15:27 [E] 用户没有设置默认案场

+ 2
- 2
service/customer/customer.go Bestand weergeven

@@ -153,8 +153,8 @@ func (s *CustomerServ) BindWechatUser(userMap *model.TaUserMapping, phone string
153 153
 	}
154 154
 
155 155
 	// triggerRegiteEvent 触发注册事件
156
-	evtEngID := utils.EngineIDBy(cust.OrgId, cust.RecommendCase)
157
-	utils.EventEngineBus(evtEngID).EmitEvent(events.EvtRegiste, *cust)
156
+	// evtEngID := utils.EngineIDBy(cust.OrgId, cust.RecommendCase)
157
+	// utils.EventEngineBus(evtEngID).EmitEvent(events.EvtRegiste, *cust)
158 158
 
159 159
 	// if cust.CustomerId == userMap.UserId {
160 160
 	// 	return cust, nil