Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 years ago
parent
commit
756bf4a903
1 changed files with 29 additions and 29 deletions
  1. 29 29
      service/gdyb_service.go

+ 29 - 29
service/gdyb_service.go View File

@@ -4639,32 +4639,32 @@ func Gdyb1101D(certNo string, org_name string, doctor string, fixmedins_code str
4639 4639
 
4640 4640
 }
4641 4641
 
4642
-func SetInputMessageFour(nonce string, timestamp int64, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string) map[string]interface{} {
4643
-	// 生成签名
4644
-	//tempTime := time.Unix(timestamp, 0)
4645
-	//timeFormat := tempTime.Format("20060102150405")
4646
-	//timeFormatOne := tempTime.Format("2006-01-02 15:04:05")
4647
-	//randNum := rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(10000)
4648
-
4649
-	msec := time.Now().Format("000")
4650
-	fmt.Println(utils.GetNetTime())
4651
-	// 生成输入报文
4652
-	inputMessage := make(map[string]interface{})
4653
-	inputMessage["msgid"] = fixmedins_code + utils.GetNetTime() + msec + "0" // 发送方报文 ID
4654
-	inputMessage["mdtrtarea_admvs"] = mdtrtarea_admvs                        // 就医地医保区划
4655
-	inputMessage["insuplc_admdvs"] = insuplc_admdvs                          // 参保地医保区划
4656
-	inputMessage["recer_sys_code"] = "1"                                     // 接收方系统代码
4657
-	inputMessage["dev_no"] = ""                                              // 设备编号
4658
-	inputMessage["dev_safe_info"] = ""                                       // 设备安全信息
4659
-	inputMessage["cainfo"] = ""                                              // 数字签名信息
4660
-	inputMessage["signtype"] = "SM3"                                         // 签名类型
4661
-	inputMessage["infver"] = "V1.0"                                          // 接收方系统代码
4662
-	inputMessage["opter_type"] = "1"                                         // 经办人类别
4663
-	inputMessage["opter"] = doctor                                           // 经办人
4664
-	inputMessage["opter_name"] = doctor                                      // 经办人姓名
4665
-	inputMessage["inf_time"] = utils.GetNetTime()                            // 交易时间
4666
-	inputMessage["fixmedins_code"] = fixmedins_code                          // 定点医药机构编号
4667
-	inputMessage["fixmedins_name"] = org_name                                //定点医药机构名称
4668
-	inputMessage["sign_no"] = ""                                             //交易签到流水号
4669
-	return inputMessage
4670
-}
4642
+//func SetInputMessageFour(nonce string, timestamp int64, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string) map[string]interface{} {
4643
+//	// 生成签名
4644
+//	//tempTime := time.Unix(timestamp, 0)
4645
+//	//timeFormat := tempTime.Format("20060102150405")
4646
+//	//timeFormatOne := tempTime.Format("2006-01-02 15:04:05")
4647
+//	//randNum := rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(10000)
4648
+//
4649
+//	msec := time.Now().Format("000")
4650
+//	fmt.Println(utils.GetNetTime())
4651
+//	// 生成输入报文
4652
+//	inputMessage := make(map[string]interface{})
4653
+//	inputMessage["msgid"] = fixmedins_code + utils.GetNetTime() + msec + "0" // 发送方报文 ID
4654
+//	inputMessage["mdtrtarea_admvs"] = mdtrtarea_admvs                        // 就医地医保区划
4655
+//	inputMessage["insuplc_admdvs"] = insuplc_admdvs                          // 参保地医保区划
4656
+//	inputMessage["recer_sys_code"] = "1"                                     // 接收方系统代码
4657
+//	inputMessage["dev_no"] = ""                                              // 设备编号
4658
+//	inputMessage["dev_safe_info"] = ""                                       // 设备安全信息
4659
+//	inputMessage["cainfo"] = ""                                              // 数字签名信息
4660
+//	inputMessage["signtype"] = "SM3"                                         // 签名类型
4661
+//	inputMessage["infver"] = "V1.0"                                          // 接收方系统代码
4662
+//	inputMessage["opter_type"] = "1"                                         // 经办人类别
4663
+//	inputMessage["opter"] = doctor                                           // 经办人
4664
+//	inputMessage["opter_name"] = doctor                                      // 经办人姓名
4665
+//	inputMessage["inf_time"] = utils.GetNetTime()                            // 交易时间
4666
+//	inputMessage["fixmedins_code"] = fixmedins_code                          // 定点医药机构编号
4667
+//	inputMessage["fixmedins_name"] = org_name                                //定点医药机构名称
4668
+//	inputMessage["sign_no"] = ""                                             //交易签到流水号
4669
+//	return inputMessage
4670
+//}