| | |
| | | import com.google.common.collect.Maps; |
| | | import com.google.gson.Gson; |
| | | import com.nq.annotation.SameUrlData; |
| | | import com.nq.common.ResponseCode; |
| | | import com.nq.common.ServerResponse; |
| | | import com.nq.pojo.User; |
| | | import com.nq.utils.PropertiesUtil; |
| | |
| | | if ("/user/rechargeCallback.do".equals(url)) {//支付回调 |
| | | return true; |
| | | } |
| | | if ("/user/noticePayment.do".equals(url)) {//代付回调 |
| | | if ("/user/rechargeCallbackTwo.do".equals(url)) {//支付回调 |
| | | return true; |
| | | } |
| | | User currentUser = getCurrentUser(httpServletRequest); |
| | |
| | | httpServletResponse.setCharacterEncoding("UTF-8"); |
| | | httpServletResponse.setContentType("application/json;charset=UTF-8"); |
| | | PrintWriter writer = httpServletResponse.getWriter(); |
| | | writer.print( new Gson().toJson(ServerResponse.createByErrorCodeMsg(401,googleTranslateUtil.translate("请登录",lang )))); |
| | | writer.print( new Gson().toJson(ServerResponse.createByErrorCodeMsg(ResponseCode.NEED_LOGIN.getCode(), googleTranslateUtil.translate("请登录",lang )))); |
| | | writer.flush(); |
| | | writer.close(); |
| | | return false; |