|
@@ -45,6 +45,8 @@ func NmybRegistRouters() {
|
45
|
45
|
|
46
|
46
|
//beego.Router("/nmyb/3202", &NmController{}, "post:Get3102")
|
47
|
47
|
|
|
48
|
+ beego.Router("/nmyb/2202", &NmController{}, "get:Post2202")
|
|
49
|
+
|
48
|
50
|
}
|
49
|
51
|
|
50
|
52
|
type ReadCardResult struct {
|
|
@@ -142,6 +144,21 @@ type ResultTwo10265 struct {
|
142
|
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
|
162
|
func (c *NmController) Post5203() {
|
146
|
163
|
fmt.Println("------")
|
147
|
164
|
org_name := c.GetString("org_name")
|