Pārlūkot izejas kodu

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

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

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

3017
 					c.ServeSuccessJSON(map[string]interface{}{
3017
 					c.ServeSuccessJSON(map[string]interface{}{
3018
 						"patient": patient,
3018
 						"patient": patient,
3019
 						"number":  basNumber,
3019
 						"number":  basNumber,
3020
+						"info":    res,
3020
 					})
3021
 					})
3021
 				} else {
3022
 				} else {
3022
 					Iinfos, _ := json.Marshal(res.Output.Iinfo)
3023
 					Iinfos, _ := json.Marshal(res.Output.Iinfo)
3043
 					c.ServeSuccessJSON(map[string]interface{}{
3044
 					c.ServeSuccessJSON(map[string]interface{}{
3044
 						"patient": patient,
3045
 						"patient": patient,
3045
 						"number":  token,
3046
 						"number":  token,
3047
+						"info":    res,
3046
 					})
3048
 					})
3047
 				}
3049
 				}
3048
 			}
3050
 			}

+ 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
 }