刘韬 5 năm trước cách đây
mục cha
commit
822e8a303e

+ 7 - 6
PacsOnline_Wechat_Doctor/src/main/java/com/zskk/controller/WxaUserApiController.java

@@ -240,13 +240,14 @@ public class WxaUserApiController extends WxaController {
 		// 同一用户,对同一个微信开放平台下的不同应用,unionid是相同的。
 
 		JSONObject object = JSON.parseObject(json);
-		renderJson(object);
+		
+		String phone = object.getString("purePhoneNumber");
+		if (StrKit.isBlank(phone)) {
+			renderJson(ErrorConstant.ERROR_PHONE_BLANK);
+			return;
+		}
+		renderText(phone);
 		return;
-//		String phone = object.getString("purePhoneNumber");
-//		if (StrKit.isBlank(phone)) {
-//			renderJson(ErrorConstant.ERROR_PHONE_BLANK);
-//			return;
-//		}
 //
 //		Doctors doctors = Doctors.dao.findFirst("select * from doctors where phone=?", phone);
 //		if (doctors == null) {