|
@@ -7,8 +7,10 @@ import (
|
7
|
7
|
"gdyb/models"
|
8
|
8
|
"io/ioutil"
|
9
|
9
|
"net/http"
|
10
|
|
- "strconv"
|
|
10
|
+ //"strconv"
|
11
|
11
|
"time"
|
|
12
|
+
|
|
13
|
+
|
12
|
14
|
)
|
13
|
15
|
|
14
|
16
|
func GetAHCFYLJG001(org_name string, opera string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, url string, cFYLJG001 models.CFYLJG001, isu string, cainfo string) (string, string) {
|
|
@@ -392,140 +394,10 @@ func GetAHCFYLJG004(org_name string, doctor string, fixmedins_code string, insup
|
392
|
394
|
}
|
393
|
395
|
|
394
|
396
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
395
|
|
- request.Header.Set("x-tif-paasid", gdyb_paasid)
|
396
|
|
- request.Header.Set("x-tif-signature", signature)
|
397
|
|
- request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
398
|
|
- request.Header.Set("x-tif-nonce", nonce)
|
399
|
|
-
|
400
|
|
- client := http.Client{}
|
401
|
|
- resp, err := client.Do(request)
|
402
|
|
- if err != nil {
|
403
|
|
- fmt.Println(err.Error())
|
404
|
|
- return err.Error(), ""
|
405
|
|
- }
|
406
|
|
- respBytes, err := ioutil.ReadAll(resp.Body)
|
407
|
|
- if err != nil {
|
408
|
|
- fmt.Println(err.Error())
|
409
|
|
- return err.Error(), ""
|
410
|
|
- }
|
411
|
|
- fmt.Println(string(respBytes))
|
412
|
|
- str := string(respBytes)
|
413
|
|
- return str, inputLog
|
414
|
|
-
|
415
|
|
-}
|
416
|
|
-
|
417
|
|
-func GetAHCFYLJG005(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG005 models.CFYLJG005, cainfo string) (string, string) {
|
418
|
|
- //生成签名
|
419
|
|
- nonce := GetRandomString(32)
|
420
|
|
- timestamp := time.Now().Unix()
|
421
|
|
- signature := setSignature(timestamp, nonce, secret_key)
|
422
|
|
- //生成输入报文
|
423
|
|
- inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
|
424
|
|
-
|
425
|
|
- inputData := make(map[string]interface{})
|
426
|
|
-
|
427
|
|
- inputData2 := make(map[string]interface{})
|
428
|
|
- //inputDatas := make([]map[string]interface{}, 0)
|
429
|
|
- inputMessage["infno"] = "7105"
|
430
|
|
- inputData["fixmedinsCode"] = fixmedins_code
|
431
|
|
- inputData["hiRxno"] = cFYLJG005.HiRxno
|
432
|
|
- inputData["mdtrtId"] = cFYLJG005.MdtrtID
|
433
|
|
- inputData["psnName"] = cFYLJG005.PsnName
|
434
|
|
- inputData["psnCertType"] = cFYLJG005.PsnCertType
|
435
|
|
- inputData["certno"] = cFYLJG005.Certno
|
436
|
|
- inputData2["data"] = inputData
|
437
|
|
- inputMessage["input"] = inputData2
|
438
|
|
- argInputMessage := make(map[string]interface{})
|
439
|
|
- argInputMessage["arg0"] = inputMessage
|
440
|
|
- var inputLog string
|
441
|
|
- bytesData, err := json.Marshal(inputMessage)
|
442
|
|
- inputLog = string(bytesData)
|
443
|
|
- fmt.Println(string(bytesData))
|
444
|
|
- if err != nil {
|
445
|
|
- fmt.Println(err.Error())
|
446
|
|
- return err.Error(), ""
|
447
|
|
- }
|
448
|
|
- reader := bytes.NewReader(bytesData)
|
449
|
|
-
|
450
|
|
- var url string
|
451
|
|
-
|
452
|
|
- url = url + "7105"
|
453
|
|
-
|
454
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
455
|
|
- request, err := http.NewRequest("POST", url, reader)
|
456
|
|
- if err != nil {
|
457
|
|
- fmt.Println(err.Error())
|
458
|
|
- return err.Error(), ""
|
459
|
|
- }
|
460
|
|
-
|
461
|
|
- request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
462
|
|
- client := http.Client{}
|
463
|
|
- resp, err := client.Do(request)
|
464
|
|
- if err != nil {
|
465
|
|
- fmt.Println(err.Error())
|
466
|
|
- return err.Error(), ""
|
467
|
|
- }
|
468
|
|
- respBytes, err := ioutil.ReadAll(resp.Body)
|
469
|
|
- if err != nil {
|
470
|
|
- fmt.Println(err.Error())
|
471
|
|
- return err.Error(), ""
|
472
|
|
- }
|
473
|
|
- fmt.Println(string(respBytes))
|
474
|
|
- str := string(respBytes)
|
475
|
|
- return str, inputLog
|
476
|
|
-
|
477
|
|
-}
|
478
|
|
-func GetAHCFYLJG006(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG006 models.CFYLJG006) (string, string) {
|
479
|
|
- //生成签名
|
480
|
|
- nonce := GetRandomString(32)
|
481
|
|
- timestamp := time.Now().Unix()
|
482
|
|
- signature := setSignature(timestamp, nonce, secret_key)
|
483
|
|
- //生成输入报文
|
484
|
|
- inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
|
485
|
|
- inputData := make(map[string]interface{})
|
486
|
|
- //inputDatas := make([]map[string]interface{}, 0)
|
487
|
|
- inputData2 := make(map[string]interface{})
|
488
|
|
-
|
489
|
|
- inputMessage["infno"] = "CFYLJG006"
|
490
|
|
- inputData["fixmedinsCode"] = fixmedins_code
|
491
|
|
- inputData["hiRxno"] = cFYLJG006.HiRxno
|
492
|
|
- inputData["mdtrtId"] = cFYLJG006.MdtrtID
|
493
|
|
- inputData["psnName"] = cFYLJG006.PsnName
|
494
|
|
- inputData["psnCertType"] = cFYLJG006.PsnCertType
|
495
|
|
- inputData["certno"] = cFYLJG006.Certno
|
496
|
|
- inputData2["data"] = inputData
|
497
|
|
- inputMessage["input"] = inputData2
|
498
|
|
- var inputLog string
|
499
|
|
- bytesData, err := json.Marshal(inputMessage)
|
500
|
|
- inputLog = string(bytesData)
|
501
|
|
- fmt.Println(string(bytesData))
|
502
|
|
- if err != nil {
|
503
|
|
- fmt.Println(err.Error())
|
504
|
|
- return err.Error(), ""
|
505
|
|
- }
|
506
|
|
- reader := bytes.NewReader(bytesData)
|
507
|
|
- gdyb_url := beego.AppConfig.String("gdyb_url")
|
508
|
|
- gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
|
509
|
|
-
|
510
|
|
- var url string
|
511
|
|
- if fixmedins_code == "H15049901371" {
|
512
|
|
- url = gdyb_url
|
513
|
|
- } else {
|
514
|
|
- url = gdyb_url + "CFYLJG006"
|
515
|
|
- }
|
516
|
|
-
|
517
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
518
|
|
- request, err := http.NewRequest("POST", url, reader)
|
519
|
|
- if err != nil {
|
520
|
|
- fmt.Println(err.Error())
|
521
|
|
- return err.Error(), ""
|
522
|
|
- }
|
523
|
|
-
|
524
|
|
- request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
525
|
|
- request.Header.Set("x-tif-paasid", gdyb_paasid)
|
526
|
|
- request.Header.Set("x-tif-signature", signature)
|
527
|
|
- request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
528
|
|
- request.Header.Set("x-tif-nonce", nonce)
|
|
397
|
+ //request.Header.Set("x-tif-paasid", gdyb_paasid)
|
|
398
|
+ //request.Header.Set("x-tif-signature", signature)
|
|
399
|
+ //request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
|
400
|
+ //request.Header.Set("x-tif-nonce", nonce)
|
529
|
401
|
|
530
|
402
|
client := http.Client{}
|
531
|
403
|
resp, err := client.Do(request)
|
|
@@ -543,78 +415,208 @@ func GetAHCFYLJG006(org_name string, doctor string, fixmedins_code string, insup
|
543
|
415
|
return str, inputLog
|
544
|
416
|
|
545
|
417
|
}
|
546
|
|
-func GetAHCFYLJG007(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG007 models.CFYLJG007) (string, string) {
|
547
|
|
- //生成签名
|
548
|
|
- nonce := GetRandomString(32)
|
549
|
|
- timestamp := time.Now().Unix()
|
550
|
|
- signature := setSignature(timestamp, nonce, secret_key)
|
551
|
|
- //生成输入报文
|
552
|
|
- inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
|
553
|
|
- inputData := make(map[string]interface{})
|
554
|
|
- inputData2 := make(map[string]interface{})
|
555
|
|
-
|
556
|
|
- //inputDatas := make([]map[string]interface{}, 0)
|
557
|
|
-
|
558
|
|
- inputMessage["infno"] = "CFYLJG007"
|
559
|
|
-
|
560
|
|
- inputData["fixmedinsCode"] = fixmedins_code
|
561
|
|
- inputData["hiRxno"] = cFYLJG007.HiRxno
|
562
|
|
- inputData["mdtrtId"] = cFYLJG007.MdtrtID
|
563
|
|
- inputData["psnCertType"] = cFYLJG007.PsnCertType
|
564
|
|
- inputData["certno"] = cFYLJG007.Certno
|
565
|
|
- inputData["psnName"] = cFYLJG007.PsnName
|
566
|
|
-
|
567
|
|
- inputData2["data"] = inputData
|
568
|
418
|
|
569
|
|
- inputMessage["input"] = inputData2
|
570
|
|
- var inputLog string
|
571
|
|
- bytesData, err := json.Marshal(inputMessage)
|
572
|
|
- inputLog = string(bytesData)
|
573
|
|
- fmt.Println(string(bytesData))
|
574
|
|
- if err != nil {
|
575
|
|
- fmt.Println(err.Error())
|
576
|
|
- return err.Error(), ""
|
577
|
|
- }
|
578
|
|
- reader := bytes.NewReader(bytesData)
|
579
|
|
- gdyb_url := beego.AppConfig.String("gdyb_url")
|
580
|
|
- gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
|
581
|
|
-
|
582
|
|
- var url string
|
583
|
|
- if fixmedins_code == "H15049901371" {
|
584
|
|
- url = gdyb_url
|
585
|
|
- } else {
|
586
|
|
- url = gdyb_url + "CFYLJG007"
|
587
|
|
- }
|
588
|
|
-
|
589
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
590
|
|
- request, err := http.NewRequest("POST", url, reader)
|
591
|
|
- if err != nil {
|
592
|
|
- fmt.Println(err.Error())
|
593
|
|
- return err.Error(), ""
|
594
|
|
- }
|
595
|
|
-
|
596
|
|
- request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
597
|
|
- request.Header.Set("x-tif-paasid", gdyb_paasid)
|
598
|
|
- request.Header.Set("x-tif-signature", signature)
|
599
|
|
- request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
600
|
|
- request.Header.Set("x-tif-nonce", nonce)
|
601
|
|
-
|
602
|
|
- client := http.Client{}
|
603
|
|
- resp, err := client.Do(request)
|
604
|
|
- if err != nil {
|
605
|
|
- fmt.Println(err.Error())
|
606
|
|
- return err.Error(), ""
|
607
|
|
- }
|
608
|
|
- respBytes, err := ioutil.ReadAll(resp.Body)
|
609
|
|
- if err != nil {
|
610
|
|
- fmt.Println(err.Error())
|
611
|
|
- return err.Error(), ""
|
612
|
|
- }
|
613
|
|
- fmt.Println(string(respBytes))
|
614
|
|
- str := string(respBytes)
|
615
|
|
- return str, inputLog
|
616
|
|
-
|
617
|
|
-}
|
|
419
|
+//func GetAHCFYLJG005(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG005 models.CFYLJG005, cainfo string) (string, string) {
|
|
420
|
+// //生成签名
|
|
421
|
+// nonce := GetRandomString(32)
|
|
422
|
+// timestamp := time.Now().Unix()
|
|
423
|
+// //signature := setSignature(timestamp, nonce, secret_key)
|
|
424
|
+// //生成输入报文
|
|
425
|
+// inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
|
|
426
|
+//
|
|
427
|
+// inputData := make(map[string]interface{})
|
|
428
|
+//
|
|
429
|
+// inputData2 := make(map[string]interface{})
|
|
430
|
+// //inputDatas := make([]map[string]interface{}, 0)
|
|
431
|
+// inputMessage["infno"] = "7105"
|
|
432
|
+// inputData["fixmedinsCode"] = fixmedins_code
|
|
433
|
+// inputData["hiRxno"] = cFYLJG005.HiRxno
|
|
434
|
+// inputData["mdtrtId"] = cFYLJG005.MdtrtID
|
|
435
|
+// inputData["psnName"] = cFYLJG005.PsnName
|
|
436
|
+// inputData["psnCertType"] = cFYLJG005.PsnCertType
|
|
437
|
+// inputData["certno"] = cFYLJG005.Certno
|
|
438
|
+// inputData2["data"] = inputData
|
|
439
|
+// inputMessage["input"] = inputData2
|
|
440
|
+// argInputMessage := make(map[string]interface{})
|
|
441
|
+// argInputMessage["arg0"] = inputMessage
|
|
442
|
+// var inputLog string
|
|
443
|
+// bytesData, err := json.Marshal(inputMessage)
|
|
444
|
+// inputLog = string(bytesData)
|
|
445
|
+// fmt.Println(string(bytesData))
|
|
446
|
+// if err != nil {
|
|
447
|
+// fmt.Println(err.Error())
|
|
448
|
+// return err.Error(), ""
|
|
449
|
+// }
|
|
450
|
+// reader := bytes.NewReader(bytesData)
|
|
451
|
+//
|
|
452
|
+// var url string
|
|
453
|
+//
|
|
454
|
+// url = url + "7105"
|
|
455
|
+//
|
|
456
|
+// //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
|
457
|
+// request, err := http.NewRequest("POST", url, reader)
|
|
458
|
+// if err != nil {
|
|
459
|
+// fmt.Println(err.Error())
|
|
460
|
+// return err.Error(), ""
|
|
461
|
+// }
|
|
462
|
+//
|
|
463
|
+// request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
|
464
|
+// client := http.Client{}
|
|
465
|
+// resp, err := client.Do(request)
|
|
466
|
+// if err != nil {
|
|
467
|
+// fmt.Println(err.Error())
|
|
468
|
+// return err.Error(), ""
|
|
469
|
+// }
|
|
470
|
+// respBytes, err := ioutil.ReadAll(resp.Body)
|
|
471
|
+// if err != nil {
|
|
472
|
+// fmt.Println(err.Error())
|
|
473
|
+// return err.Error(), ""
|
|
474
|
+// }
|
|
475
|
+// fmt.Println(string(respBytes))
|
|
476
|
+// str := string(respBytes)
|
|
477
|
+// return str, inputLog
|
|
478
|
+//
|
|
479
|
+//}
|
|
480
|
+//func GetAHCFYLJG006(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG006 models.CFYLJG006) (string, string) {
|
|
481
|
+// //生成签名
|
|
482
|
+// nonce := GetRandomString(32)
|
|
483
|
+// timestamp := time.Now().Unix()
|
|
484
|
+// signature := setSignature(timestamp, nonce, secret_key)
|
|
485
|
+// //生成输入报文
|
|
486
|
+// inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
|
|
487
|
+// inputData := make(map[string]interface{})
|
|
488
|
+// //inputDatas := make([]map[string]interface{}, 0)
|
|
489
|
+// inputData2 := make(map[string]interface{})
|
|
490
|
+//
|
|
491
|
+// inputMessage["infno"] = "CFYLJG006"
|
|
492
|
+// inputData["fixmedinsCode"] = fixmedins_code
|
|
493
|
+// inputData["hiRxno"] = cFYLJG006.HiRxno
|
|
494
|
+// inputData["mdtrtId"] = cFYLJG006.MdtrtID
|
|
495
|
+// inputData["psnName"] = cFYLJG006.PsnName
|
|
496
|
+// inputData["psnCertType"] = cFYLJG006.PsnCertType
|
|
497
|
+// inputData["certno"] = cFYLJG006.Certno
|
|
498
|
+// inputData2["data"] = inputData
|
|
499
|
+// inputMessage["input"] = inputData2
|
|
500
|
+// var inputLog string
|
|
501
|
+// bytesData, err := json.Marshal(inputMessage)
|
|
502
|
+// inputLog = string(bytesData)
|
|
503
|
+// fmt.Println(string(bytesData))
|
|
504
|
+// if err != nil {
|
|
505
|
+// fmt.Println(err.Error())
|
|
506
|
+// return err.Error(), ""
|
|
507
|
+// }
|
|
508
|
+// reader := bytes.NewReader(bytesData)
|
|
509
|
+// gdyb_url := beego.AppConfig.String("gdyb_url")
|
|
510
|
+// gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
|
|
511
|
+//
|
|
512
|
+// var url string
|
|
513
|
+// if fixmedins_code == "H15049901371" {
|
|
514
|
+// url = gdyb_url
|
|
515
|
+// } else {
|
|
516
|
+// url = gdyb_url + "CFYLJG006"
|
|
517
|
+// }
|
|
518
|
+//
|
|
519
|
+// //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
|
520
|
+// request, err := http.NewRequest("POST", url, reader)
|
|
521
|
+// if err != nil {
|
|
522
|
+// fmt.Println(err.Error())
|
|
523
|
+// return err.Error(), ""
|
|
524
|
+// }
|
|
525
|
+//
|
|
526
|
+// request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
|
527
|
+// request.Header.Set("x-tif-paasid", gdyb_paasid)
|
|
528
|
+// request.Header.Set("x-tif-signature", signature)
|
|
529
|
+// request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
|
530
|
+// request.Header.Set("x-tif-nonce", nonce)
|
|
531
|
+//
|
|
532
|
+// client := http.Client{}
|
|
533
|
+// resp, err := client.Do(request)
|
|
534
|
+// if err != nil {
|
|
535
|
+// fmt.Println(err.Error())
|
|
536
|
+// return err.Error(), ""
|
|
537
|
+// }
|
|
538
|
+// respBytes, err := ioutil.ReadAll(resp.Body)
|
|
539
|
+// if err != nil {
|
|
540
|
+// fmt.Println(err.Error())
|
|
541
|
+// return err.Error(), ""
|
|
542
|
+// }
|
|
543
|
+// fmt.Println(string(respBytes))
|
|
544
|
+// str := string(respBytes)
|
|
545
|
+// return str, inputLog
|
|
546
|
+//
|
|
547
|
+//}
|
|
548
|
+//func GetAHCFYLJG007(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG007 models.CFYLJG007) (string, string) {
|
|
549
|
+// //生成签名
|
|
550
|
+// nonce := GetRandomString(32)
|
|
551
|
+// timestamp := time.Now().Unix()
|
|
552
|
+// signature := setSignature(timestamp, nonce, secret_key)
|
|
553
|
+// //生成输入报文
|
|
554
|
+// inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
|
|
555
|
+// inputData := make(map[string]interface{})
|
|
556
|
+// inputData2 := make(map[string]interface{})
|
|
557
|
+//
|
|
558
|
+// //inputDatas := make([]map[string]interface{}, 0)
|
|
559
|
+//
|
|
560
|
+// inputMessage["infno"] = "CFYLJG007"
|
|
561
|
+//
|
|
562
|
+// inputData["fixmedinsCode"] = fixmedins_code
|
|
563
|
+// inputData["hiRxno"] = cFYLJG007.HiRxno
|
|
564
|
+// inputData["mdtrtId"] = cFYLJG007.MdtrtID
|
|
565
|
+// inputData["psnCertType"] = cFYLJG007.PsnCertType
|
|
566
|
+// inputData["certno"] = cFYLJG007.Certno
|
|
567
|
+// inputData["psnName"] = cFYLJG007.PsnName
|
|
568
|
+//
|
|
569
|
+// inputData2["data"] = inputData
|
|
570
|
+//
|
|
571
|
+// inputMessage["input"] = inputData2
|
|
572
|
+// var inputLog string
|
|
573
|
+// bytesData, err := json.Marshal(inputMessage)
|
|
574
|
+// inputLog = string(bytesData)
|
|
575
|
+// fmt.Println(string(bytesData))
|
|
576
|
+// if err != nil {
|
|
577
|
+// fmt.Println(err.Error())
|
|
578
|
+// return err.Error(), ""
|
|
579
|
+// }
|
|
580
|
+// reader := bytes.NewReader(bytesData)
|
|
581
|
+// gdyb_url := beego.AppConfig.String("gdyb_url")
|
|
582
|
+// gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
|
|
583
|
+//
|
|
584
|
+// var url string
|
|
585
|
+// if fixmedins_code == "H15049901371" {
|
|
586
|
+// url = gdyb_url
|
|
587
|
+// } else {
|
|
588
|
+// url = gdyb_url + "CFYLJG007"
|
|
589
|
+// }
|
|
590
|
+//
|
|
591
|
+// //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
|
592
|
+// request, err := http.NewRequest("POST", url, reader)
|
|
593
|
+// if err != nil {
|
|
594
|
+// fmt.Println(err.Error())
|
|
595
|
+// return err.Error(), ""
|
|
596
|
+// }
|
|
597
|
+//
|
|
598
|
+// request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
|
599
|
+// request.Header.Set("x-tif-paasid", gdyb_paasid)
|
|
600
|
+// request.Header.Set("x-tif-signature", signature)
|
|
601
|
+// request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
|
602
|
+// request.Header.Set("x-tif-nonce", nonce)
|
|
603
|
+//
|
|
604
|
+// client := http.Client{}
|
|
605
|
+// resp, err := client.Do(request)
|
|
606
|
+// if err != nil {
|
|
607
|
+// fmt.Println(err.Error())
|
|
608
|
+// return err.Error(), ""
|
|
609
|
+// }
|
|
610
|
+// respBytes, err := ioutil.ReadAll(resp.Body)
|
|
611
|
+// if err != nil {
|
|
612
|
+// fmt.Println(err.Error())
|
|
613
|
+// return err.Error(), ""
|
|
614
|
+// }
|
|
615
|
+// fmt.Println(string(respBytes))
|
|
616
|
+// str := string(respBytes)
|
|
617
|
+// return str, inputLog
|
|
618
|
+//
|
|
619
|
+//}
|
618
|
620
|
|
619
|
621
|
//func GetAHCFYLJG008(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG008 models.CFYLJG008) (string, string) {
|
620
|
622
|
// //生成签名
|