Pārlūkot izejas kodu

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

csx 3 gadus atpakaļ
vecāks
revīzija
2eca401620
2 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 4 4
      main.go
  2. 1 1
      routers/router.go

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

16
 
16
 
17
 func init() {
17
 func init() {
18
 	service.ConnectDB()
18
 	service.ConnectDB()
19
-	org_id, _ := beego.AppConfig.Int64("org_id")
20
-	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
21
-	CreateLog(miConfig)
22
-	UploadLog(miConfig)
19
+	//org_id, _ := beego.AppConfig.Int64("org_id")
20
+	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
21
+	//CreateLog(miConfig)
22
+	//UploadLog(miConfig)
23
 }
23
 }
24
 func main() {
24
 func main() {
25
 	beego.Run()
25
 	beego.Run()

+ 1 - 1
routers/router.go Parādīt failu

14
 
14
 
15
 func init() {
15
 func init() {
16
 	beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
16
 	beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
17
-		// AllowAllOrigins:  true,
17
+		//AllowAllOrigins:  true,
18
 		AllowOrigins: []string{"https://xt.kuyicloud.com", "http://localhost:9528", "http://localhost:9529", "http://localhost:9531", "http://xt.test.shengws.com", "http://new_mobile.test.sgjyun.com", "https://xt.test.shengws.com", "http://xt.test.sgjyun.com", "https://xt.test.sgjyun.com", "http://localhost:8081", "http://localhost:8082", "https://pad.kuyicloud.com", "http://pad.kuyicloud.com", "http://pad.test.sgjyun.com", "https://pad.test.sgjyun.com", "http://admin.xt.test.sgjyun.com", "http://admin.xt.kuyicloud.com", "http://mobile.sgjyun.com", "http://mobile.kuyicloud.com"},
18
 		AllowOrigins: []string{"https://xt.kuyicloud.com", "http://localhost:9528", "http://localhost:9529", "http://localhost:9531", "http://xt.test.shengws.com", "http://new_mobile.test.sgjyun.com", "https://xt.test.shengws.com", "http://xt.test.sgjyun.com", "https://xt.test.sgjyun.com", "http://localhost:8081", "http://localhost:8082", "https://pad.kuyicloud.com", "http://pad.kuyicloud.com", "http://pad.test.sgjyun.com", "https://pad.test.sgjyun.com", "http://admin.xt.test.sgjyun.com", "http://admin.xt.kuyicloud.com", "http://mobile.sgjyun.com", "http://mobile.kuyicloud.com"},
19
 		//AllowOrigins:     []string{"https://xt.kuyicloud.com", "http://localhost:9528", "http://xt.test.shengws.com","https://xt.test.shengws.com", "http://xt.test.sgjyun.com","https://xt.test.sgjyun.com", "http://localhost:8081", "http://localhost:8082", "https://pad.kuyicloud.com", "http://pad.kuyicloud.com", "http://pad.test.sgjyun.com","https://pad.test.sgjyun.com", "http://admin.xt.test.sgjyun.com", "http://admin.xt.kuyicloud.com","http://mobile.sgjyun.com","http://mobile.kuyicloud.com"},
19
 		//AllowOrigins:     []string{"https://xt.kuyicloud.com", "http://localhost:9528", "http://xt.test.shengws.com","https://xt.test.shengws.com", "http://xt.test.sgjyun.com","https://xt.test.sgjyun.com", "http://localhost:8081", "http://localhost:8082", "https://pad.kuyicloud.com", "http://pad.kuyicloud.com", "http://pad.test.sgjyun.com","https://pad.test.sgjyun.com", "http://admin.xt.test.sgjyun.com", "http://admin.xt.kuyicloud.com","http://mobile.sgjyun.com","http://mobile.kuyicloud.com"},
20
 		AllowMethods:     []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
20
 		AllowMethods:     []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},