Pārlūkot izejas kodu

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

csx 2 gadus atpakaļ
vecāks
revīzija
6dda5ddc6d
2 mainītis faili ar 8 papildinājumiem un 7 dzēšanām
  1. 1 0
      controllers/zh/zh_his_api_controller.go
  2. 7 7
      main.go

+ 1 - 0
controllers/zh/zh_his_api_controller.go Parādīt failu

2556
 		api := "http://172.16.13.254:9532/" + "nmyb/2405?mdtrt_id=" + record.Number + "&psn_no=" + record.PsnNo +
2556
 		api := "http://172.16.13.254:9532/" + "nmyb/2405?mdtrt_id=" + record.Number + "&psn_no=" + record.PsnNo +
2557
 			"&org_name=" + miConfig.OrgName + "&doctor=" + role.UserName + "&fixmedins_code=" + miConfig.Code +
2557
 			"&org_name=" + miConfig.OrgName + "&doctor=" + role.UserName + "&fixmedins_code=" + miConfig.Code +
2558
 			"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
2558
 			"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
2559
+		fmt.Println(api)
2559
 		resp, requestErr := http.Get(api)
2560
 		resp, requestErr := http.Get(api)
2560
 		if requestErr != nil {
2561
 		if requestErr != nil {
2561
 			this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
2562
 			this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)

+ 7 - 7
main.go Parādīt failu

5
 	"fmt"
5
 	"fmt"
6
 	"gdyb/models"
6
 	"gdyb/models"
7
 	_ "gdyb/routers"
7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9
 	"github.com/astaxie/beego"
9
 	"github.com/astaxie/beego"
10
 	"github.com/qiniu/api.v7/auth/qbox"
10
 	"github.com/qiniu/api.v7/auth/qbox"
11
 	"github.com/qiniu/api.v7/storage"
11
 	"github.com/qiniu/api.v7/storage"
15
 )
15
 )
16
 
16
 
17
 func init() {
17
 func init() {
18
-	//service.ConnectDB()
19
-	//org_id, _ := beego.AppConfig.Int64("org_id")
20
-	//
21
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
-	//CreateLog(miConfig)
23
-	//UploadLog(miConfig)
18
+	service.ConnectDB()
19
+	org_id, _ := beego.AppConfig.Int64("org_id")
20
+
21
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
+	CreateLog(miConfig)
23
+	UploadLog(miConfig)
24
 
24
 
25
 	//UploadSettleList(org_id)
25
 	//UploadSettleList(org_id)
26
 }
26
 }