| | |
| | | import com.moon.server.entity.sys.TokenEntity; |
| | | import com.moon.server.entity.sys.UserEntity; |
| | | import com.moon.server.helper.AsyncHelper; |
| | | import com.moon.server.helper.HttpHelper; |
| | | import com.moon.server.helper.StringHelper; |
| | | import com.moon.server.helper.WebHelper; |
| | | import com.moon.server.service.all.PermsService; |
| | |
| | | } |
| | | |
| | | insertLog(req, ue, resId); |
| | | String url = getSourceUrl(req, resId); |
| | | proxy(req, res, url); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | |
| | | return -1; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取原始Url |
| | | */ |
| | | private String getSourceUrl(HttpServletRequest req, int resId) { |
| | | |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * 代理服务 |
| | | */ |
| | | private void proxy(HttpServletRequest request, HttpServletResponse response, String url) throws Exception { |
| | | HttpHelper httpHelper = new HttpHelper(); |
| | | httpHelper.service(request, response, url, null); |
| | | } |
| | | } |