Explorar el Código

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

csx hace 3 años
padre
commit
3614806ada
Se han modificado 2 ficheros con 7 adiciones y 7 borrados
  1. 1 1
      controllers/sg/his_api_controller.go
  2. 6 6
      main.go

+ 1 - 1
controllers/sg/his_api_controller.go Ver fichero

@@ -5355,7 +5355,7 @@ func (c *HisApiController) GetPreUploadInfo() {
5355 5355
 			return
5356 5356
 		}
5357 5357
 
5358
-		time_stamp = respJSON["data"].(map[string]interface{})["time_stamp"].(int64)
5358
+		time_stamp = int64(respJSON["data"].(map[string]interface{})["time_stamp"].(float64))
5359 5359
 
5360 5360
 		respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
5361 5361
 		userJSONBytes, _ := json.Marshal(respJSON)

+ 6 - 6
main.go Ver fichero

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