|
@@ -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) {
|