| | |
| | | |
| | | import org.springframework.stereotype.Controller; |
| | | |
| | | import com.yeshi.buwan.controller.parser.UserParser; |
| | | import com.yeshi.buwan.domain.Attention; |
| | | import com.yeshi.buwan.domain.Comment2; |
| | | import com.yeshi.buwan.domain.CommentReply; |
| | | import com.yeshi.buwan.domain.DetailSystem; |
| | | import com.yeshi.buwan.domain.system.DetailSystem; |
| | | import com.yeshi.buwan.domain.user.LoginUser; |
| | | import com.yeshi.buwan.domain.VideoInfo; |
| | | import com.yeshi.buwan.service.imp.AttentionService; |
| | |
| | | |
| | | DetailSystem detailSystem = systemService.getDetailSystemByPackage(packageName); |
| | | |
| | | LoginUser lu = userService.getLoginUser(openid, detailSystem.getId(), Integer.parseInt(loginType), portrait, |
| | | name,UserParser.getIp(request)+":"+request.getRemotePort()); |
| | | if (lu != null) { |
| | | JSONObject object = new JSONObject(); |
| | | object.put("LoginUid", lu.getId()); |
| | | object.put("Name", lu.getName()); |
| | | object.put("Portrait", lu.getPortrait()); |
| | | out.print(JsonUtil.loadTrueJsonNoencript(object.toString())); |
| | | } else { |
| | | // LoginUser lu = userService.getLoginUser(openid, detailSystem.getId(), Integer.parseInt(loginType), portrait, |
| | | // name,UserParser.getIp(request)+":"+request.getRemotePort()); |
| | | // if (lu != null) { |
| | | // JSONObject object = new JSONObject(); |
| | | // object.put("LoginUid", lu.getId()); |
| | | // object.put("Name", lu.getName()); |
| | | // object.put("Portrait", lu.getPortrait()); |
| | | // out.print(JsonUtil.loadTrueJsonNoencript(object.toString())); |
| | | // } else { |
| | | out.print(JsonUtil.loadFalseJsonNoencript("登录失败")); |
| | | } |
| | | // } |
| | | } |
| | | |
| | | private String savePortrait(HttpServletRequest request) { |