浏览代码

bug修改

wangfei 6 年前
父节点
当前提交
7e2b20ecda
共有 4 个文件被更改,包括 43 次插入3 次删除
  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 查看文件

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

+ 5
- 0
controllers/vipcard/vipcard.go 查看文件

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

+ 35
- 0
log/common.log 查看文件

88
 2018/09/17 03:04:16 [E] 不存在课程信息!
88
 2018/09/17 03:04:16 [E] 不存在课程信息!
89
 2018/09/17 03:05:37 [E] 解析 Token 失败: token contains an invalid number of segments
89
 2018/09/17 03:05:37 [E] 解析 Token 失败: token contains an invalid number of segments
90
 2018/09/17 03:07:51 [E] 解析 Token 失败: token contains an invalid number of segments
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 查看文件

153
 	}
153
 	}
154
 
154
 
155
 	// triggerRegiteEvent 触发注册事件
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
 	// if cust.CustomerId == userMap.UserId {
159
 	// if cust.CustomerId == userMap.UserId {
160
 	// 	return cust, nil
160
 	// 	return cust, nil