添加接口:自动更新订阅

This commit is contained in:
liuchengqian 2023-03-08 16:25:46 +08:00
parent 26a326e490
commit 4a628519de
2 changed files with 6 additions and 6 deletions

View File

@ -29,14 +29,13 @@ class WebSecurityConfig extends WebSecurityConfigurerAdapter {
http.csrf().disable() http.csrf().disable()
// 对请求进行认证 // 对请求进行认证
.authorizeRequests() .authorizeRequests()
// 所有 / 的所有请求 都放行
//.antMatchers("/").permitAll()
// 所有OPTIONS请求都放行 // 所有OPTIONS请求都放行
.antMatchers(HttpMethod.OPTIONS).permitAll() .antMatchers(HttpMethod.OPTIONS).permitAll()
.antMatchers("/global/configuration/**").permitAll() .antMatchers("/global/configuration/**").permitAll()
.antMatchers("/push/**").permitAll() .antMatchers("/push/**").permitAll()
.antMatchers("/dispatch/**").permitAll() .antMatchers("/dispatch/**").permitAll()
.antMatchers("/queryFirePoint").permitAll() .antMatchers("/queryFirePoint").permitAll()
.antMatchers(HttpMethod.GET, "/autoSync").permitAll()
.antMatchers(HttpMethod.POST, "/insertFirePoint").permitAll() .antMatchers(HttpMethod.POST, "/insertFirePoint").permitAll()
.antMatchers(HttpMethod.POST, "/insertFirePointChannelPrecise").permitAll() .antMatchers(HttpMethod.POST, "/insertFirePointChannelPrecise").permitAll()
.antMatchers(HttpMethod.GET, "/queryFirePointBroadcast").permitAll() .antMatchers(HttpMethod.GET, "/queryFirePointBroadcast").permitAll()

View File

@ -1,10 +1,10 @@
package com.xkrs.controller; package com.xkrs.controller;
import com.xkrs.service.impl.FirePointServiceImpl;
import com.xkrs.dao.SysUserDao; import com.xkrs.dao.SysUserDao;
import com.xkrs.helper.FirePointSubscribeManager; import com.xkrs.helper.FirePointSubscribeManager;
import com.xkrs.model.qo.AllFirePointQo; import com.xkrs.model.qo.AllFirePointQo;
import com.xkrs.service.DispatchFirePointService; import com.xkrs.service.DispatchFirePointService;
import com.xkrs.service.impl.FirePointServiceImpl;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -49,11 +49,12 @@ public class DispatchFirePointController {
// sysUserEntity.setVipTimeRangeJson(serialize); // sysUserEntity.setVipTimeRangeJson(serialize);
// sysUserDao.save(sysUserEntity); // sysUserDao.save(sysUserEntity);
// } // }
return "OKkkkkkkk";
}
@GetMapping("/autoSync")
public String autoSync() {
return firePointSubscribeManager.autoSync(); return firePointSubscribeManager.autoSync();
// return "OKkkkkkkk";
} }
/** /**