You've already forked FrameTour-BE
生成视频时发送通知,其他调整
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package com.ycwl.basic.controller.mobile;
|
||||
|
||||
import com.ycwl.basic.annotation.IgnoreToken;
|
||||
import com.ycwl.basic.constant.BaseContextHandler;
|
||||
import com.ycwl.basic.exception.CheckTokenException;
|
||||
import com.ycwl.basic.model.jwt.JwtInfo;
|
||||
import com.ycwl.basic.model.mobile.goods.*;
|
||||
import com.ycwl.basic.service.mobile.GoodsService;
|
||||
@ -45,9 +47,14 @@ public class AppGoodsController {
|
||||
|
||||
@ApiOperation("成片vlog商品详情")
|
||||
@GetMapping("/getVideoGoodsDetail/{videoId}")
|
||||
@IgnoreToken
|
||||
public ApiResponse<VideoGoodsDetailVO> videoGoodsDetail(@PathVariable("videoId") Long videoId) {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return goodsService.videoGoodsDetail(worker.getUserId(), videoId);
|
||||
try {
|
||||
JwtInfo worker = JwtTokenUtil.getWorker();
|
||||
return goodsService.videoGoodsDetail(worker.getUserId(), videoId);
|
||||
} catch (CheckTokenException e) {
|
||||
return goodsService.videoGoodsDetail(null, videoId);
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("/sourceGoods/{sourceId}")
|
||||
|
@ -33,10 +33,10 @@ public class AppMemberController {
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation("登录")
|
||||
@PostMapping("/login")
|
||||
@PostMapping("/{scenicId}/login")
|
||||
@IgnoreToken
|
||||
public ApiResponse<?> login(@RequestBody WeChatUserInfoDTO userInfoDTO) throws Exception {
|
||||
return memberService.login(userInfoDTO.getCode(), userInfoDTO);
|
||||
public ApiResponse<?> login(@PathVariable("scenicId") Long scenicId ,@RequestBody WeChatUserInfoDTO userInfoDTO) throws Exception {
|
||||
return memberService.login(scenicId, userInfoDTO.getCode(), userInfoDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user