|
@@ -167,7 +167,7 @@ public class MothMovableServiceImpl implements MothMovableService {
|
|
|
ImageUtils.pressPost(newImg,
|
|
|
headImg,PosterNumUtils.HEAD_X,PosterNumUtils.HEAD_Y,
|
|
|
codeImg,PosterNumUtils.CODE_X,PosterNumUtils.CODE_Y,
|
|
|
- mothMovable.getUserNickname(),PosterNumUtils.TEXT_X,PosterNumUtils.TEXT_Y,new Color(221,106,140),PosterNumUtils.TEXT_FONT_SIZE,
|
|
|
+ mothMovable.getMothMovaName(),PosterNumUtils.TEXT_X,PosterNumUtils.TEXT_Y,new Color(221,106,140),PosterNumUtils.TEXT_FONT_SIZE,
|
|
|
mothMovable.getMothMovaText(),PosterNumUtils.TEXT_CONTENT_X,PosterNumUtils.TEXT_CONTENT_Y,new Color(0,0,0),PosterNumUtils.TEXT_CONTENT_FONT_SIZE
|
|
|
);
|
|
|
return true;
|
|
@@ -193,9 +193,16 @@ public class MothMovableServiceImpl implements MothMovableService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Integer scanInfo(Integer mothMovaId, String openId) {
|
|
|
+ public Integer scanInfo(String mothMovaOpenId, String openId) {
|
|
|
+ MothMovable mothMovable = new MothMovable();
|
|
|
+ mothMovable.setMothMovaOpenId(mothMovaOpenId);
|
|
|
+ List<MothMovable> mothMovableList = mothMovableMapper.getMothMovableList(mothMovable);
|
|
|
+ if(mothMovableList == null || mothMovableList.size() < 1){
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ mothMovable = mothMovableList.get(0);
|
|
|
MothPopularity mothPopularity = new MothPopularity();
|
|
|
- mothPopularity.setMothPopuId(mothMovaId);
|
|
|
+ mothPopularity.setMothMovaId(mothMovable.getMothMovaId());
|
|
|
mothPopularity.setMothPopuOpenId(openId);
|
|
|
return mothPopularityMapper.save(mothPopularity);
|
|
|
}
|