You've already forked FrameTour-BE
1
This commit is contained in:
@@ -198,6 +198,7 @@ public class LyCompatibleController {
|
||||
R response = R.ok();
|
||||
if (collect.get(0) == null) {
|
||||
response.put("isgen", 1)
|
||||
.put("face_id", faceVO.getId().toString())
|
||||
.put("newvideo", Collections.emptyList())
|
||||
.put("newuservideo", Collections.emptyList());
|
||||
return response;
|
||||
@@ -224,6 +225,7 @@ public class LyCompatibleController {
|
||||
List<Map<String, Object>> userVideoList = sourceGoodsList.stream().map(goodsDetailVO -> {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("id", goodsDetailVO.getGoodsId().toString());
|
||||
map.put("face_id", goodsDetailVO.getFaceId().toString());
|
||||
map.put("openid", openId);
|
||||
map.put("template_cover_image", goodsDetailVO.getUrl());
|
||||
map.put("scenicname", goodsDetailVO.getScenicName());
|
||||
@@ -233,6 +235,7 @@ public class LyCompatibleController {
|
||||
}).collect(Collectors.toList());
|
||||
response
|
||||
.put("isgen", taskStatusVO.getStatus() == 1 ? 0 : 1)
|
||||
.put("face_id", faceVO.getId().toString())
|
||||
.put("newvideo", videoList)
|
||||
.put("newuservideo", userVideoList);
|
||||
redisTemplate.opsForValue().set("ly:"+openId, JSON.toJSONString(response), 5, TimeUnit.SECONDS);
|
||||
|
Reference in New Issue
Block a user