Commit bb16db54 by huluobin

update

parent 60c93d49
......@@ -96,6 +96,9 @@ public class StoreTechnicianServiceImpl extends ServiceImpl<StoreTechnicianMappe
@Override
public StoreTechnician getTechnician() {
Integer technicianId = SessionUtils.getTechnicianId();
if (technicianId == null) {
throw new RRException(2000, "token已经失效,请重新登陆");
}
StoreTechnician storeTechnician = this.getById(technicianId);
GogirlToken gogirlToken = SessionUtils.getTechnicianToken();
storeTechnician.setTechnicianId(storeTechnician.getId());
......
......@@ -113,7 +113,7 @@ public class MvcInterceptorConfig extends WebMvcConfigurationSupport {
.excludePathPatterns("/technician/phone/bindPhone_t")
.excludePathPatterns("/technician/phone/getBindCode")
.excludePathPatterns("/technician/xcx/upload")
// .excludePathPatterns("/technician/xcx/getUserInfo_t")
.excludePathPatterns("/technician/xcx/getUserInfo_t")
.excludePathPatterns("/technician/xcx/choseStore")
.excludePathPatterns("/technician/xcx/getTechnicianShopList")
.excludePathPatterns("/customer/produce/queryProduceDetail")
......
......@@ -111,7 +111,6 @@ public class XcxController {
public JsonResult<StoreTechnician> getTechnician(@RequestHeader String token) {
log.info("根据token:" + token + ",查询用户信息.");
StoreTechnician storeTechnician = storeTechnicianService.getTechnician();
return JsonResult.success(storeTechnician);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment