add 烟花 斗图优化
This commit is contained in:
@@ -31,7 +31,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.antMatchers("/register","/login","/toLogin","/checkLogin","/checkRegister").permitAll()
|
||||
.antMatchers("/source","/source/view/*").permitAll()
|
||||
.antMatchers("/blog","/blog/read/*").permitAll()
|
||||
.antMatchers("/guess","/favor").permitAll()
|
||||
.antMatchers("/guess","/favor","/firework").permitAll()
|
||||
.antMatchers("/search/**").permitAll()
|
||||
.antMatchers("/about").permitAll()
|
||||
.antMatchers("/user/donate").permitAll()
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.quinn.common.ExpBucket;
|
||||
import com.quinn.intergration.BucketImage;
|
||||
import com.quinn.intergration.TodayLove;
|
||||
import com.quinn.pojo.About;
|
||||
import com.quinn.service.AboutService;
|
||||
import com.quinn.utils.QuinnUtils;
|
||||
@@ -33,6 +34,8 @@ public class AboutController extends BaseModelController {
|
||||
|
||||
@Resource
|
||||
AboutService aboutService;
|
||||
@Resource
|
||||
TodayLove todayLove;
|
||||
|
||||
@GetMapping("/about")
|
||||
public String userIndexBlog(HttpServletRequest request,Model model){
|
||||
@@ -51,9 +54,16 @@ public class AboutController extends BaseModelController {
|
||||
return "cimi/guess";
|
||||
}
|
||||
|
||||
@GetMapping("/firework")
|
||||
public String firework(){
|
||||
return "firework/index";
|
||||
}
|
||||
|
||||
// 列表展示
|
||||
@GetMapping("/favor")
|
||||
public String sourceList(Model model) throws IOException {
|
||||
// 每日情话
|
||||
model.addAttribute("LoveList",todayLove.getTodayLoveStr());
|
||||
MyPageParam pageParam = new MyPageParam(1,24);
|
||||
List<ExpBucket> recordList = aboutService.listExp(null,pageParam);
|
||||
model.addAttribute("recordList",recordList);
|
||||
@@ -63,6 +73,8 @@ public class AboutController extends BaseModelController {
|
||||
|
||||
@PostMapping("/favor")
|
||||
public String blogListPage(FindNavReq findNavReq, Model model) throws IOException {
|
||||
// 每日情话
|
||||
model.addAttribute("LoveList",todayLove.getTodayLoveStr());
|
||||
int page = findNavReq.getPageNum();
|
||||
int limit = findNavReq.getLimit();
|
||||
if (findNavReq.getPageNum() < 1){
|
||||
@@ -73,6 +85,7 @@ public class AboutController extends BaseModelController {
|
||||
// 结果
|
||||
model.addAttribute("recordList",recordList);
|
||||
model.addAttribute("pageParam",pageParam);
|
||||
model.addAttribute("findBucket",findNavReq.getFindWhat());
|
||||
return "page/favor::user_table_refresh";
|
||||
}
|
||||
|
||||
|
||||
@@ -37,15 +37,11 @@ public class LoginController {
|
||||
UserService userService;
|
||||
@Autowired
|
||||
UserInfoService userInfoService;
|
||||
@Resource
|
||||
TodayLove todayLove;
|
||||
|
||||
@GetMapping({"/","/index","/source/view/index",
|
||||
"/blog/read/index"
|
||||
})
|
||||
public String index(Model model) throws IOException {
|
||||
// 每日情话
|
||||
model.addAttribute("LoveList",todayLove.getTodayLoveStr());
|
||||
return "index";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user