Browse Source

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

csx 3 years ago
parent
commit
69f5fd09b4
1 changed files with 5 additions and 2 deletions
  1. 5 2
      controllers/sg/gdyb_controller.go

+ 5 - 2
controllers/sg/gdyb_controller.go View File

134
 	mdtrtarea_admvs := c.GetString("mdtrtarea_admvs")
134
 	mdtrtarea_admvs := c.GetString("mdtrtarea_admvs")
135
 	secret_key := c.GetString("secret_key")
135
 	secret_key := c.GetString("secret_key")
136
 	fixmedins_code := c.GetString("fixmedins_code")
136
 	fixmedins_code := c.GetString("fixmedins_code")
137
-
138
 	result := service.Gdyb2202(psnNo, mdtrtId, iptOtpNo, org_name, doctor, insuplc_admdvs, mdtrtarea_admvs, secret_key, fixmedins_code)
137
 	result := service.Gdyb2202(psnNo, mdtrtId, iptOtpNo, org_name, doctor, insuplc_admdvs, mdtrtarea_admvs, secret_key, fixmedins_code)
138
+	var dat map[string]interface{}
139
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
140
+	} else {
141
+	}
139
 	c.ServeSuccessJSON(map[string]interface{}{
142
 	c.ServeSuccessJSON(map[string]interface{}{
140
-		"pre": result,
143
+		"pre": dat,
141
 	})
144
 	})
142
 }
145
 }
143
 
146