| | |
| | | }
|
| | | }
|
| | |
|
| | | //获取电话号码
|
| | | @RequestMapping(value = "getPhone")
|
| | | public void getPhone(String callback, AcceptData acceptData, Long uid, PrintWriter out) {
|
| | | if (uid == null || uid <= 0) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(1, "用户未登录"));
|
| | | return;
|
| | | }
|
| | | UserInfo user = userInfoService.selectAvailableByPrimaryKey(uid);
|
| | | if(user==null){
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(2, "用户不存在"));
|
| | | return;
|
| | | }
|
| | | |
| | | JSONObject data=new JSONObject();
|
| | | data.put("phone", user.getPhone());
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
|
| | | }
|
| | |
|
| | | }
|