Browse Source

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

csx 2 years ago
parent
commit
9d26da2b54
2 changed files with 18 additions and 1 deletions
  1. 1 1
      conf/app.conf
  2. 17 0
      controllers/nm/nm_controller.go

+ 1 - 1
conf/app.conf View File

45
 
45
 
46
 
46
 
47
 [prod]
47
 [prod]
48
-org_id = 10217
48
+org_id = 10265
49
 mobile_token_expiration_second = 86400
49
 mobile_token_expiration_second = 86400
50
 httpdomain = https://api.xt.kuyicloud.com
50
 httpdomain = https://api.xt.kuyicloud.com
51
 sso_domain = https://sso.kuyicloud.com
51
 sso_domain = https://sso.kuyicloud.com

+ 17 - 0
controllers/nm/nm_controller.go View File

45
 
45
 
46
 	//beego.Router("/nmyb/3202", &NmController{}, "post:Get3102")
46
 	//beego.Router("/nmyb/3202", &NmController{}, "post:Get3102")
47
 
47
 
48
+	beego.Router("/nmyb/2202", &NmController{}, "get:Post2202")
49
+
48
 }
50
 }
49
 
51
 
50
 type ReadCardResult struct {
52
 type ReadCardResult struct {
142
 	WarnInfo    interface{} `json:"warn_info"`
144
 	WarnInfo    interface{} `json:"warn_info"`
143
 }
145
 }
144
 
146
 
147
+func (c *NmController) Post2202() {
148
+
149
+	result, requestLog := service.Gdyb2202("150000CFSJM100000100005413", "20211227145332876188", "2021122714565410808111489", "赤峰费森血液透析中心", "李彩星", "150499", "150499", "MSDBYGxXm1Mtyi3PtOUB7n1ktcxwyW57", "H15049901371")
150
+	var dat map[string]interface{}
151
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
152
+	} else {
153
+	}
154
+
155
+	c.ServeSuccessJSON(map[string]interface{}{
156
+		"pre":         dat,
157
+		"request_log": requestLog,
158
+	})
159
+
160
+}
161
+
145
 func (c *NmController) Post5203() {
162
 func (c *NmController) Post5203() {
146
 	fmt.Println("------")
163
 	fmt.Println("------")
147
 	org_name := c.GetString("org_name")
164
 	org_name := c.GetString("org_name")