zjxpcyc před 6 roky
rodič
revize
0985d457d1
5 změnil soubory, kde provedl 166 přidání a 4 odebrání
  1. 2
    1
      .gitignore
  2. 1
    1
      conf/log.conf
  3. 156
    0
      log/common.log
  4. 1
    1
      models/course/course.go
  5. 6
    1
      service/course/order.go

+ 2
- 1
.gitignore Zobrazit soubor

@@ -1,3 +1,4 @@
1 1
 *.exe
2 2
 *.exe~
3
-*.test
3
+*.test
4
+*.log

+ 1
- 1
conf/log.conf Zobrazit soubor

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

+ 156
- 0
log/common.log Zobrazit soubor

@@ -17,3 +17,159 @@
17 17
 2018/09/06 08:59:42 [E] 获取课程信息失败: a pointer to a pointer is not allowed
18 18
 2018/09/06 08:59:42 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_M_kvI_z4pOqAS1IOxrEBuww0pRQQc71V6Q1orhkJL7Nxt91N34sELesVttpgb575SNGF36NA08CfuEOxoxCbjL2ugqCle9NG4wdBdtjfa_YwOUJ2AD0g63LmRtcAAAbAAAJJJ","expires_in":7200})
19 19
 2018/09/06 08:59:42 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[expires_in:7200 access_token:13_M_kvI_z4pOqAS1IOxrEBuww0pRQQc71V6Q1orhkJL7Nxt91N34sELesVttpgb575SNGF36NA08CfuEOxoxCbjL2ugqCle9NG4wdBdtjfa_YwOUJ2AD0g63LmRtcAAAbAAAJJJ])
20
+2018/09/06 09:22:13 [I] 请求远程接口: %!(EXTRA string=https://api.weixin.qq.com/cgi-bin/token?appid=wx7320287e057bbeee&grant_type=client_credential&secret=6e844dc2ade439545c47569ba1707673)
21
+2018/09/06 09:22:14 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_ETkevIy1tg117S_ZR8XrOWIrmE3-ZsK0ek_a8NVNR6kwu6azQpAsypMf_YPZ4BOmA4rXeu8YX2ASV15q5F_Wrm1UcwXrps1iLe4uTLO9cggpZmSkDJTS2jlEyFZlStz_HqP4LHtMuXBuP_2cANRgAIATGK","expires_in":7200})
22
+2018/09/06 09:22:14 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[access_token:13_ETkevIy1tg117S_ZR8XrOWIrmE3-ZsK0ek_a8NVNR6kwu6azQpAsypMf_YPZ4BOmA4rXeu8YX2ASV15q5F_Wrm1UcwXrps1iLe4uTLO9cggpZmSkDJTS2jlEyFZlStz_HqP4LHtMuXBuP_2cANRgAIATGK expires_in:7200])
23
+2018/09/06 09:23:30 [I] 请求远程接口: %!(EXTRA string=https://api.weixin.qq.com/cgi-bin/token?appid=wx7320287e057bbeee&grant_type=client_credential&secret=6e844dc2ade439545c47569ba1707673)
24
+2018/09/06 09:23:31 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_WTy3GpNaUGgx1ipilhNILmp7cu0uXc3D0R1xt98e6Wrpo_NeZ5oISvVXS0wpneoA7aTGhFNupmZ01rvRP1n_Fi5rCf3c3dW2H6um6kTLSihYzbfqqtIej1xMJ3BvnJeNSnwpVrSvFUziDpPsGGBfAIAZZU","expires_in":7200})
25
+2018/09/06 09:23:31 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[access_token:13_WTy3GpNaUGgx1ipilhNILmp7cu0uXc3D0R1xt98e6Wrpo_NeZ5oISvVXS0wpneoA7aTGhFNupmZ01rvRP1n_Fi5rCf3c3dW2H6um6kTLSihYzbfqqtIej1xMJ3BvnJeNSnwpVrSvFUziDpPsGGBfAIAZZU expires_in:7200])
26
+2018/09/06 09:25:06 [I] 请求远程接口: %!(EXTRA string=https://api.weixin.qq.com/cgi-bin/token?appid=wx7320287e057bbeee&grant_type=client_credential&secret=6e844dc2ade439545c47569ba1707673)
27
+2018/09/06 09:25:06 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_7PzfsFon35cZvd_el4gAV2gKPLRLidrUUL9zrLqO_MclaUoExhJGqzWTo_nd8gcrOUATW6JPCrnhEu96bnxRamlqS3STTA2eoMY2jxy79krnU1mAFKa-6zmwRncabyO_XcjCEEPJXqUerDaFVNDcAAAQIY","expires_in":7200})
28
+2018/09/06 09:25:06 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[access_token:13_7PzfsFon35cZvd_el4gAV2gKPLRLidrUUL9zrLqO_MclaUoExhJGqzWTo_nd8gcrOUATW6JPCrnhEu96bnxRamlqS3STTA2eoMY2jxy79krnU1mAFKa-6zmwRncabyO_XcjCEEPJXqUerDaFVNDcAAAQIY expires_in:7200])
29
+2018/09/06 09:28:13 [I] 请求远程接口: %!(EXTRA string=https://api.weixin.qq.com/cgi-bin/token?appid=wx7320287e057bbeee&grant_type=client_credential&secret=6e844dc2ade439545c47569ba1707673)
30
+2018/09/06 09:28:14 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_tor6Z2K-ij2HJvJ7gKd0YPnjdCrrYfn-ONzq5hPulcuKzcNfZ73VhwL-qWM9TFIkUZl4ifdIwW4x0wUriVsfBDt4942_O0QGVQheN8QJipnrVdDQCEiYZ6PAcZFms0RuWSCb-69_2ypkYwgVLFQdAJATNY","expires_in":7200})
31
+2018/09/06 09:28:14 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[expires_in:7200 access_token:13_tor6Z2K-ij2HJvJ7gKd0YPnjdCrrYfn-ONzq5hPulcuKzcNfZ73VhwL-qWM9TFIkUZl4ifdIwW4x0wUriVsfBDt4942_O0QGVQheN8QJipnrVdDQCEiYZ6PAcZFms0RuWSCb-69_2ypkYwgVLFQdAJATNY])
32
+2018/09/06 09:28:51 [I] 请求远程接口: %!(EXTRA string=https://api.weixin.qq.com/cgi-bin/token?appid=wx7320287e057bbeee&grant_type=client_credential&secret=6e844dc2ade439545c47569ba1707673)
33
+2018/09/06 09:28:53 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_Cl9ubCg6ACvuwi6IP9WmMf-uZJq9ElASxwnCi9YW2UAImHNbibm3nQZfhNv68D6pAs5myISQovYh4Mq0YOEMF1lq8Yolbi0S1dKIZffu9NdLpkdFTYCOb59NmMeny1whv59ctGbcxa7rHAyDUJTiAAAJYI","expires_in":7200})
34
+2018/09/06 09:28:53 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[access_token:13_Cl9ubCg6ACvuwi6IP9WmMf-uZJq9ElASxwnCi9YW2UAImHNbibm3nQZfhNv68D6pAs5myISQovYh4Mq0YOEMF1lq8Yolbi0S1dKIZffu9NdLpkdFTYCOb59NmMeny1whv59ctGbcxa7rHAyDUJTiAAAJYI expires_in:7200])
35
+2018/09/06 09:31:24 [I] 请求远程接口: %!(EXTRA string=https://api.weixin.qq.com/cgi-bin/token?appid=wx7320287e057bbeee&grant_type=client_credential&secret=6e844dc2ade439545c47569ba1707673)
36
+2018/09/06 09:31:25 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_aDqcjQQIXUP6V8Ibrp-05s91A_OyKOprrRPiK2f03quyRo6Cfzq6ibXM_EhYQAGv7VM_qk3RQ97MwdozZK6S3R03xiUA-BIxuUA3fvSi41GhzJm499swX7C9w3134HfWG8rBMXXbvHnhfzQkGURiAAAAOL","expires_in":7200})
37
+2018/09/06 09:31:25 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[access_token:13_aDqcjQQIXUP6V8Ibrp-05s91A_OyKOprrRPiK2f03quyRo6Cfzq6ibXM_EhYQAGv7VM_qk3RQ97MwdozZK6S3R03xiUA-BIxuUA3fvSi41GhzJm499swX7C9w3134HfWG8rBMXXbvHnhfzQkGURiAAAAOL expires_in:7200])
38
+2018/09/06 09:43:53 [I] 请求远程接口: %!(EXTRA string=https://api.weixin.qq.com/cgi-bin/token?appid=wx7320287e057bbeee&grant_type=client_credential&secret=6e844dc2ade439545c47569ba1707673)
39
+2018/09/06 09:43:54 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_pDSk1_wLMr1yzTIcIhfOemZ8x2JZqaVEC0HLn_7kJ7rl_SYRMbQxB2f6r-AGYkRobzKc97T--lwLsuSz8KvBH42m6aoBX_E43L2eNigbrkrohUwImhwh2tZJlvoKCChAIAVNN","expires_in":7200})
40
+2018/09/06 09:43:54 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[access_token:13_pDSk1_wLMr1yzTIcIhfOemZ8x2JZqaVEC0HLn_7kJ7rl_SYRMbQxB2f6r-AGYkRobzKc97T--lwLsuSz8KvBH42m6aoBX_E43L2eNigbrkrohUwImhwh2tZJlvoKCChAIAVNN expires_in:7200])
41
+2018/09/06 10:01:47 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
42
+2018/09/06 10:01:47 [E] 获取组织信息失败: 没有查询到机构信息
43
+2018/09/06 10:01:48 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
44
+2018/09/06 10:01:48 [E] 获取组织信息失败: 没有查询到机构信息
45
+2018/09/06 10:01:50 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
46
+2018/09/06 10:01:50 [E] 获取组织信息失败: 没有查询到机构信息
47
+2018/09/06 10:01:57 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
48
+2018/09/06 10:01:57 [E] 获取组织信息失败: 没有查询到机构信息
49
+2018/09/06 10:01:58 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
50
+2018/09/06 10:01:58 [E] 获取组织信息失败: 没有查询到机构信息
51
+2018/09/06 10:19:10 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
52
+2018/09/06 10:19:10 [E] 获取组织信息失败: 没有查询到机构信息
53
+2018/09/06 10:19:11 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
54
+2018/09/06 10:19:11 [E] 获取组织信息失败: 没有查询到机构信息
55
+2018/09/06 10:19:11 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
56
+2018/09/06 10:19:11 [E] 获取组织信息失败: 没有查询到机构信息
57
+2018/09/06 10:19:11 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
58
+2018/09/06 10:19:11 [E] 获取组织信息失败: 没有查询到机构信息
59
+2018/09/06 10:19:11 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
60
+2018/09/06 10:19:11 [E] 获取组织信息失败: 没有查询到机构信息
61
+2018/09/06 10:19:16 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
62
+2018/09/06 10:19:16 [E] 获取组织信息失败: 没有查询到机构信息
63
+2018/09/06 10:19:16 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
64
+2018/09/06 10:19:16 [E] 获取组织信息失败: 没有查询到机构信息
65
+2018/09/06 10:19:16 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
66
+2018/09/06 10:19:16 [E] 获取组织信息失败: 没有查询到机构信息
67
+2018/09/06 10:19:16 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
68
+2018/09/06 10:19:16 [E] 获取组织信息失败: 没有查询到机构信息
69
+2018/09/06 10:19:16 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
70
+2018/09/06 10:19:16 [E] 获取组织信息失败: 没有查询到机构信息
71
+2018/09/06 10:19:23 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
72
+2018/09/06 10:19:23 [E] 获取组织信息失败: 没有查询到机构信息
73
+2018/09/06 10:19:27 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
74
+2018/09/06 10:19:27 [E] 获取组织信息失败: 没有查询到机构信息
75
+2018/09/06 10:19:27 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
76
+2018/09/06 10:19:27 [E] 获取组织信息失败: 没有查询到机构信息
77
+2018/09/06 10:19:27 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
78
+2018/09/06 10:19:27 [E] 获取组织信息失败: 没有查询到机构信息
79
+2018/09/06 10:19:27 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
80
+2018/09/06 10:19:27 [E] 获取组织信息失败: 没有查询到机构信息
81
+2018/09/06 10:19:27 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
82
+2018/09/06 10:19:27 [E] 获取组织信息失败: 没有查询到机构信息
83
+2018/09/06 10:19:28 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
84
+2018/09/06 10:19:28 [E] 获取组织信息失败: 没有查询到机构信息
85
+2018/09/06 10:19:28 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
86
+2018/09/06 10:19:28 [E] 获取组织信息失败: 没有查询到机构信息
87
+2018/09/06 10:19:28 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
88
+2018/09/06 10:19:28 [E] 获取组织信息失败: 没有查询到机构信息
89
+2018/09/06 10:19:31 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
90
+2018/09/06 10:19:31 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
91
+2018/09/06 10:19:31 [E] 获取组织信息失败: 没有查询到机构信息
92
+2018/09/06 10:19:31 [E] 获取组织信息失败: 没有查询到机构信息
93
+2018/09/06 10:19:32 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
94
+2018/09/06 10:19:32 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
95
+2018/09/06 10:19:32 [E] 获取组织信息失败: 没有查询到机构信息
96
+2018/09/06 10:19:32 [E] 获取组织信息失败: 没有查询到机构信息
97
+2018/09/06 10:19:41 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
98
+2018/09/06 10:19:41 [E] 获取组织信息失败: 没有查询到机构信息
99
+2018/09/06 10:19:41 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
100
+2018/09/06 10:19:41 [E] 获取组织信息失败: 没有查询到机构信息
101
+2018/09/06 10:19:41 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
102
+2018/09/06 10:19:41 [E] 获取组织信息失败: 没有查询到机构信息
103
+2018/09/06 10:19:41 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
104
+2018/09/06 10:19:41 [E] 获取组织信息失败: 没有查询到机构信息
105
+2018/09/06 10:19:41 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
106
+2018/09/06 10:19:41 [E] 获取组织信息失败: 没有查询到机构信息
107
+2018/09/06 10:19:42 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
108
+2018/09/06 10:19:42 [E] 获取组织信息失败: 没有查询到机构信息
109
+2018/09/06 10:19:42 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
110
+2018/09/06 10:19:42 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
111
+2018/09/06 10:19:42 [E] 获取组织信息失败: 没有查询到机构信息
112
+2018/09/06 10:19:42 [E] 获取组织信息失败: 没有查询到机构信息
113
+2018/09/06 10:19:47 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
114
+2018/09/06 10:19:47 [E] 获取组织信息失败: 没有查询到机构信息
115
+2018/09/06 10:19:47 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
116
+2018/09/06 10:19:47 [E] 获取组织信息失败: 没有查询到机构信息
117
+2018/09/06 10:19:47 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
118
+2018/09/06 10:19:47 [E] 获取组织信息失败: 没有查询到机构信息
119
+2018/09/06 10:19:47 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
120
+2018/09/06 10:19:47 [E] 获取组织信息失败: 没有查询到机构信息
121
+2018/09/06 10:19:48 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
122
+2018/09/06 10:19:48 [E] 获取组织信息失败: 没有查询到机构信息
123
+2018/09/06 10:19:50 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
124
+2018/09/06 10:19:50 [E] 获取组织信息失败: 没有查询到机构信息
125
+2018/09/06 10:19:50 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
126
+2018/09/06 10:19:50 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
127
+2018/09/06 10:19:50 [E] 获取组织信息失败: 没有查询到机构信息
128
+2018/09/06 10:19:50 [E] 获取组织信息失败: 没有查询到机构信息
129
+2018/09/06 10:19:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
130
+2018/09/06 10:19:52 [E] 获取组织信息失败: 没有查询到机构信息
131
+2018/09/06 10:19:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
132
+2018/09/06 10:19:52 [E] 获取组织信息失败: 没有查询到机构信息
133
+2018/09/06 10:19:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
134
+2018/09/06 10:19:52 [E] 获取组织信息失败: 没有查询到机构信息
135
+2018/09/06 10:19:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
136
+2018/09/06 10:19:52 [E] 获取组织信息失败: 没有查询到机构信息
137
+2018/09/06 10:19:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
138
+2018/09/06 10:19:52 [E] 获取组织信息失败: 没有查询到机构信息
139
+2018/09/06 10:58:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
140
+2018/09/06 10:58:52 [E] 获取组织信息失败: 没有查询到机构信息
141
+2018/09/06 10:58:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
142
+2018/09/06 10:58:52 [E] 获取组织信息失败: 没有查询到机构信息
143
+2018/09/06 10:58:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
144
+2018/09/06 10:58:52 [E] 获取组织信息失败: 没有查询到机构信息
145
+2018/09/06 10:58:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
146
+2018/09/06 10:58:52 [E] 获取组织信息失败: 没有查询到机构信息
147
+2018/09/06 10:58:52 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
148
+2018/09/06 10:58:52 [E] 获取组织信息失败: 没有查询到机构信息
149
+2018/09/06 13:52:24 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
150
+2018/09/06 13:52:24 [E] 获取组织信息失败: 没有查询到机构信息
151
+2018/09/06 13:52:24 [I] 请求远程接口: %!(EXTRA string=https://api.weixin.qq.com/cgi-bin/token?appid=wx7320287e057bbeee&grant_type=client_credential&secret=6e844dc2ade439545c47569ba1707673)
152
+2018/09/06 13:52:24 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
153
+2018/09/06 13:52:24 [E] 获取组织信息失败: 没有查询到机构信息
154
+2018/09/06 13:52:24 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
155
+2018/09/06 13:52:24 [E] 获取组织信息失败: 没有查询到机构信息
156
+2018/09/06 13:52:24 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
157
+2018/09/06 13:52:24 [E] 获取组织信息失败: 没有查询到机构信息
158
+2018/09/06 13:52:24 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
159
+2018/09/06 13:52:24 [E] 获取组织信息失败: 没有查询到机构信息
160
+2018/09/06 13:52:24 [I] 远程请求结果:%!(EXTRA string={"access_token":"13_9wmb8Y2jrSjOTC4W0yd2aut_EFTLarqBafPHq429cTGWo0wiVFUdDA-ElPHl8hG2Kzzpq7xOJ416sqRV-W-YqJbRTLeZ0QEavoChK8DQF0mF0nC0o2JuAPl3YFxKipD4leac0l8urcy1HlVpAROcAGASJG","expires_in":7200})
161
+2018/09/06 13:52:24 [I] 接口返回结果: %!(EXTRA map[string]interface {}=map[access_token:13_9wmb8Y2jrSjOTC4W0yd2aut_EFTLarqBafPHq429cTGWo0wiVFUdDA-ElPHl8hG2Kzzpq7xOJ416sqRV-W-YqJbRTLeZ0QEavoChK8DQF0mF0nC0o2JuAPl3YFxKipD4leac0l8urcy1HlVpAROcAGASJG expires_in:7200])
162
+2018/09/06 13:52:30 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
163
+2018/09/06 13:52:30 [E] 获取组织信息失败: 没有查询到机构信息
164
+2018/09/06 14:00:06 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
165
+2018/09/06 14:00:06 [E] 获取组织信息失败: 没有查询到机构信息
166
+2018/09/06 14:01:10 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
167
+2018/09/06 14:01:10 [E] 获取组织信息失败: 没有查询到机构信息
168
+2018/09/06 14:01:31 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
169
+2018/09/06 14:01:31 [E] 获取组织信息失败: 没有查询到机构信息
170
+2018/09/06 14:02:01 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
171
+2018/09/06 14:02:01 [E] 获取组织信息失败: 没有查询到机构信息
172
+2018/09/06 14:20:22 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
173
+2018/09/06 14:20:23 [E] 获取组织信息失败: 没有查询到机构信息
174
+2018/09/06 14:20:44 [E] 解密 Base64 字串失败: illegal base64 data at input byte 1
175
+2018/09/06 14:20:44 [E] 获取组织信息失败: 没有查询到机构信息

+ 1
- 1
models/course/course.go Zobrazit soubor

@@ -213,7 +213,7 @@ type CourseDetail struct {
213 213
 func (m *CourseDAO) GetCourseInfo(courseid string) (*CourseDetail, error) {
214 214
 	course := new(CourseDetail)
215 215
 	sql := `select * from ta_course where course_id='` + courseid + `'`
216
-	has, err := m.db.Sql(sql).Get(&course)
216
+	has, err := m.db.Sql(sql).Get(course)
217 217
 	if err != nil {
218 218
 		return nil, err
219 219
 	}

+ 6
- 1
service/course/order.go Zobrazit soubor

@@ -45,7 +45,7 @@ func (s *CourseServ) Orders(
45 45
 	if err != nil {
46 46
 		return err
47 47
 	}
48
-	if course.CourseDetail == nil || len(course.CourseDetail) > 0 {
48
+	if course.CourseDetail == nil || len(course.CourseDetail) == 0 {
49 49
 		return errors.New("定单课程尚未排课, 不能下单")
50 50
 	}
51 51
 
@@ -60,6 +60,11 @@ func (s *CourseServ) Orders(
60 60
 	couseOrder.CourseName = course.CourseName
61 61
 	couseOrder.CourseNum = course.CourseNum
62 62
 	couseOrder.OrgId = org.OrgId
63
+	couseOrder.Status = models.STATUS_NORMAL
64
+
65
+	// 默认是已支付
66
+	couseOrder.IsPay = models.BOOL_TRUE
67
+
63 68
 	if cust.Name != "" {
64 69
 		couseOrder.CustomerName = cust.Name
65 70
 	} else {