一键同步

This commit is contained in:
wangshuai 2024-07-22 23:20:24 +08:00
parent 6f36e1222a
commit 4083ec2b04
1 changed files with 5 additions and 10 deletions

View File

@ -46,13 +46,8 @@ public class MeituanController {
@Async
@GetMapping("/refresh")
public R refresh(){
LoginUser user = SecurityUtils.getLoginUser();
if("admin".equals(user.getUsername())){
iMeituanService.getComments(null);
}else{
iMeituanService.getComments(user.getUsername());
}
iMeituanService.getReturnInfo(null);
iMeituanService.getReturnInfo(null);//店铺id
return R.ok();
}
@ -61,8 +56,8 @@ public class MeituanController {
*/
@GetMapping("/getComment")
public R getComment(Long id){
iMeituanService.getComment(id);
iMeituanService.getReturnInfo(id);
iMeituanService.getComment(id);//店铺id
iMeituanService.getReturnInfo(id);//店铺id
return R.ok();
}
@ -71,7 +66,7 @@ public class MeituanController {
*/
@GetMapping("/getReturnInfo")
public R getReturnInfo(){
iMeituanService.getReturnInfo(null);
iMeituanService.getReturnInfo(null);//店铺id
return R.ok();
}