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);
|
||||
|
@@ -19,6 +19,8 @@ import java.util.Date;
|
||||
public class GoodsDetailVO {
|
||||
@ApiModelProperty("商品名称")
|
||||
private String goodsName;
|
||||
@ApiModelProperty("人脸id")
|
||||
private Long faceId;
|
||||
@ApiModelProperty("景区id")
|
||||
private Long scenicId;
|
||||
@ApiModelProperty("景区名称")
|
||||
|
@@ -195,6 +195,7 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
int i=1;
|
||||
for (SourceRespVO sourceRespVO : list) {
|
||||
GoodsDetailVO goodsDetailVO = new GoodsDetailVO();
|
||||
goodsDetailVO.setFaceId(sourceRespVO.getFaceId());
|
||||
goodsDetailVO.setGoodsId(sourceRespVO.getId());
|
||||
String shootingTime = DateUtil.format(sourceRespVO.getCreateTime(), "yyyy.MM.dd HH:mm:ss");
|
||||
if (i < 10) {
|
||||
|
Reference in New Issue
Block a user