|
@@ -64,15 +64,25 @@ func AHybRegistRouters() {
|
64
|
64
|
beego.Router("/ahyb/2406", &AHybController{}, "post:Get2406")
|
65
|
65
|
beego.Router("/ahyb/readcardcharge", &AHybController{}, "get:Readcardcharge")
|
66
|
66
|
|
67
|
|
-
|
68
|
|
-
|
|
67
|
+ beego.Router("/ahyb/3501", &AHybController{}, "post:Get3501")
|
|
68
|
+ beego.Router("/ahyb/3502", &AHybController{}, "post:Get3502")
|
|
69
|
+ beego.Router("/ahyb/3503", &AHybController{}, "post:Get3503")
|
|
70
|
+ beego.Router("/ahyb/3504", &AHybController{}, "post:Get3504")
|
|
71
|
+ beego.Router("/ahyb/3505", &AHybController{}, "post:Get3505")
|
|
72
|
+ beego.Router("/ahyb/3506", &AHybController{}, "post:Get3506")
|
|
73
|
+ beego.Router("/ahyb/3507", &AHybController{}, "post:Get3507")
|
|
74
|
+ beego.Router("/ahyb/3508", &AHybController{}, "post:Get3508")
|
|
75
|
+ beego.Router("/ahyb/3509", &AHybController{}, "post:Get3509")
|
|
76
|
+ beego.Router("/ahyb/3510", &AHybController{}, "post:Get3510")
|
|
77
|
+ beego.Router("/ahyb/3511", &AHybController{}, "post:Get3511")
|
|
78
|
+ beego.Router("/ahyb/3512", &AHybController{}, "post:Get3512")
|
|
79
|
+ beego.Router("/ahyb/3513", &AHybController{}, "post:Get3513")
|
69
|
80
|
|
70
|
81
|
beego.Router("/ahyb/2406", &AHybController{}, "post:Get2406")
|
71
|
82
|
beego.Router("/ahyb/2406", &AHybController{}, "post:Get2406")
|
72
|
83
|
|
73
|
|
-
|
74
|
84
|
}
|
75
|
|
-func (c *JSybController) Get3501() {
|
|
85
|
+func (c *AHybController) Get3501() {
|
76
|
86
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
77
|
87
|
var respJSON map[string]interface{}
|
78
|
88
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -104,7 +114,7 @@ func (c *JSybController) Get3501() {
|
104
|
114
|
})
|
105
|
115
|
|
106
|
116
|
}
|
107
|
|
-func (c *JSybController) Get3502() {
|
|
117
|
+func (c *AHybController) Get3502() {
|
108
|
118
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
109
|
119
|
var respJSON map[string]interface{}
|
110
|
120
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -136,7 +146,7 @@ func (c *JSybController) Get3502() {
|
136
|
146
|
})
|
137
|
147
|
|
138
|
148
|
}
|
139
|
|
-func (c *JSybController) Get3503() {
|
|
149
|
+func (c *AHybController) Get3503() {
|
140
|
150
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
141
|
151
|
var respJSON map[string]interface{}
|
142
|
152
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -169,7 +179,7 @@ func (c *JSybController) Get3503() {
|
169
|
179
|
})
|
170
|
180
|
|
171
|
181
|
}
|
172
|
|
-func (c *JSybController) Get3504() {
|
|
182
|
+func (c *AHybController) Get3504() {
|
173
|
183
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
174
|
184
|
var respJSON map[string]interface{}
|
175
|
185
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -201,7 +211,7 @@ func (c *JSybController) Get3504() {
|
201
|
211
|
})
|
202
|
212
|
|
203
|
213
|
}
|
204
|
|
-func (c *JSybController) Get3505() {
|
|
214
|
+func (c *AHybController) Get3505() {
|
205
|
215
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
206
|
216
|
var respJSON map[string]interface{}
|
207
|
217
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -215,25 +225,36 @@ func (c *JSybController) Get3505() {
|
215
|
225
|
utils.ErrorLog("解析失败:%v", err)
|
216
|
226
|
return
|
217
|
227
|
}
|
218
|
|
-
|
219
|
|
- result, request_log := service.Jsyb3505(struct3505)
|
220
|
|
- saveJsLog(result, request_log, "3505", "销售", struct3505.OrgName)
|
221
|
|
- var dat2 map[string]interface{}
|
222
|
|
- if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
223
|
|
- } else {
|
|
228
|
+ result, inputLog := service.AHyb3505(struct3505, struct3505.SecretKey, struct3505.RequestUrl)
|
|
229
|
+ saveJsLog(result, inputLog, "3505", "销售上传", struct3505.OrgName)
|
|
230
|
+ var response Response
|
|
231
|
+ if err := json.Unmarshal([]byte(result), &response); err != nil {
|
|
232
|
+ fmt.Println("Error decoding JSON:", err)
|
|
233
|
+ return
|
224
|
234
|
}
|
225
|
|
- var dat map[string]interface{}
|
226
|
|
- if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
235
|
+
|
|
236
|
+ if response.Code == 200 {
|
|
237
|
+ var dat2 map[string]interface{}
|
|
238
|
+ if err := json.Unmarshal([]byte(inputLog), &dat2); err == nil {
|
|
239
|
+ } else {
|
|
240
|
+
|
|
241
|
+ }
|
|
242
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
243
|
+ "pre": response.Body,
|
|
244
|
+ "log": dat2,
|
|
245
|
+ "status": "1",
|
|
246
|
+ "msg": "",
|
|
247
|
+ })
|
|
248
|
+
|
227
|
249
|
} else {
|
|
250
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
251
|
+ "status": "0",
|
|
252
|
+ "msg": response.Message,
|
|
253
|
+ })
|
228
|
254
|
|
229
|
255
|
}
|
230
|
|
- c.ServeSuccessJSON(map[string]interface{}{
|
231
|
|
- "pre": dat,
|
232
|
|
- "request_log": dat2,
|
233
|
|
- })
|
234
|
|
-
|
235
|
256
|
}
|
236
|
|
-func (c *JSybController) Get3506() {
|
|
257
|
+func (c *AHybController) Get3506() {
|
237
|
258
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
238
|
259
|
var respJSON map[string]interface{}
|
239
|
260
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -265,7 +286,7 @@ func (c *JSybController) Get3506() {
|
265
|
286
|
})
|
266
|
287
|
|
267
|
288
|
}
|
268
|
|
-func (c *JSybController) Get3507() {
|
|
289
|
+func (c *AHybController) Get3507() {
|
269
|
290
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
270
|
291
|
var respJSON map[string]interface{}
|
271
|
292
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -297,7 +318,7 @@ func (c *JSybController) Get3507() {
|
297
|
318
|
})
|
298
|
319
|
|
299
|
320
|
}
|
300
|
|
-func (c *JSybController) Get3508() {
|
|
321
|
+func (c *AHybController) Get3508() {
|
301
|
322
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
302
|
323
|
var respJSON map[string]interface{}
|
303
|
324
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -329,7 +350,7 @@ func (c *JSybController) Get3508() {
|
329
|
350
|
})
|
330
|
351
|
|
331
|
352
|
}
|
332
|
|
-func (c *JSybController) Get3509() {
|
|
353
|
+func (c *AHybController) Get3509() {
|
333
|
354
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
334
|
355
|
var respJSON map[string]interface{}
|
335
|
356
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -361,7 +382,7 @@ func (c *JSybController) Get3509() {
|
361
|
382
|
})
|
362
|
383
|
|
363
|
384
|
}
|
364
|
|
-func (c *JSybController) Get3510() {
|
|
385
|
+func (c *AHybController) Get3510() {
|
365
|
386
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
366
|
387
|
var respJSON map[string]interface{}
|
367
|
388
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -393,7 +414,7 @@ func (c *JSybController) Get3510() {
|
393
|
414
|
})
|
394
|
415
|
|
395
|
416
|
}
|
396
|
|
-func (c *JSybController) Get3511() {
|
|
417
|
+func (c *AHybController) Get3511() {
|
397
|
418
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
398
|
419
|
var respJSON map[string]interface{}
|
399
|
420
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -425,7 +446,7 @@ func (c *JSybController) Get3511() {
|
425
|
446
|
})
|
426
|
447
|
|
427
|
448
|
}
|
428
|
|
-func (c *JSybController) Get3512() {
|
|
449
|
+func (c *AHybController) Get3512() {
|
429
|
450
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
430
|
451
|
var respJSON map[string]interface{}
|
431
|
452
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
@@ -457,7 +478,7 @@ func (c *JSybController) Get3512() {
|
457
|
478
|
})
|
458
|
479
|
|
459
|
480
|
}
|
460
|
|
-func (c *JSybController) Get3513() {
|
|
481
|
+func (c *AHybController) Get3513() {
|
461
|
482
|
body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
462
|
483
|
var respJSON map[string]interface{}
|
463
|
484
|
if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|