Browse Source

体积小

XMLWAN 3 years ago
parent
commit
b27967cbbb
1 changed files with 11 additions and 0 deletions
  1. 11 0
      controllers/xcx_mobile_api_controller.go/xcx_api_controller.go

+ 11 - 0
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go View File

95
 			if err == nil {
95
 			if err == nil {
96
 				this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
96
 				this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
97
 				return
97
 				return
98
+			} else {
99
+				this.ServeSuccessJSON(map[string]interface{}{
100
+					"is_bind": false,
101
+					"msg":     "绑定失败",
102
+				})
98
 			}
103
 			}
99
 			this.ServeSuccessJSON(map[string]interface{}{
104
 			this.ServeSuccessJSON(map[string]interface{}{
100
 				"role": role,
105
 				"role": role,
101
 			})
106
 			})
107
+
102
 		} else if errcode == nil {
108
 		} else if errcode == nil {
103
 			mobilePatient, _ := service.GetMobilePatient(id_card_no)
109
 			mobilePatient, _ := service.GetMobilePatient(id_card_no)
104
 			this.ServeSuccessJSON(map[string]interface{}{
110
 			this.ServeSuccessJSON(map[string]interface{}{
177
 					"is_bind": true,
183
 					"is_bind": true,
178
 					"info":    info,
184
 					"info":    info,
179
 				})
185
 				})
186
+			} else if err != nil {
187
+				this.ServeSuccessJSON(map[string]interface{}{
188
+					"is_bind": false,
189
+					"info":    info,
190
+				})
180
 			}
191
 			}
181
 
192
 
182
 		} else {
193
 		} else {