根据经纬度获取位置信息
This commit is contained in:
parent
f8b2a3a7d4
commit
796ca0c551
|
|
@ -45,11 +45,11 @@ public class LoginFilter implements Filter {
|
|||
"cashierService/common/**",//通用接口
|
||||
"cashierService/distirict/**",//首页其它接口
|
||||
"cashierService/login/**",//登录部分接口不校验
|
||||
"cashierService/notify/**",//登录部分接口不校验
|
||||
"cashierService/product/queryShopIdByTableCode",
|
||||
"cashierService/product/queryProduct",
|
||||
"cashierService/product/productInfo",
|
||||
"notify/**"//登录部分接口不校验
|
||||
"cashierService/notify/**",//登录部分接口不校验
|
||||
"notify/**"//回调部分接口不校验
|
||||
);
|
||||
|
||||
@Autowired
|
||||
|
|
@ -80,11 +80,6 @@ public class LoginFilter implements Filter {
|
|||
|
||||
//environment 环境标识 wx app 后续environment不可为空
|
||||
String environment = request.getHeader("environment");
|
||||
// //token校验目前只对app生效
|
||||
// if (StringUtils.isBlank(environment) || !environment.equals("app")) {
|
||||
// chain.doFilter(req, resp);
|
||||
// return;
|
||||
// }
|
||||
|
||||
// 判断用户TOKEN是否存在
|
||||
String token = request.getHeader("token");
|
||||
|
|
|
|||
|
|
@ -99,8 +99,8 @@ public class CommonController {
|
|||
}
|
||||
|
||||
@GetMapping("location/geocode")
|
||||
public Result geocode(String location){
|
||||
return Result.success(CodeEnum.SUCCESS, LocationUtils.geocode(location));
|
||||
public Result geocode(@RequestParam String lat, @RequestParam String lng){
|
||||
return Result.success(CodeEnum.SUCCESS, LocationUtils.geocode(lng+","+lat));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
package com.chaozhanggui.system.cashierservice.interceptor;
|
||||
|
||||
import ch.qos.logback.classic.turbo.TurboFilter;
|
||||
import com.chaozhanggui.system.cashierservice.exception.MsgException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.*;
|
||||
import javax.servlet.annotation.WebFilter;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
|
|
|||
Loading…
Reference in New Issue