Commit 8beb06bf by 阮思源

Merge branch 'fix-1002495' into 'master'

陪伴天数接口修改

See merge request rays/pcloud-book!553
parents bb752568 a5089706
......@@ -502,6 +502,9 @@ public class CultivateBizImpl implements CultivateBiz {
public Long getLoginDays(Long wechatUserId) {
WechatUser wechatUser = readerConsr.getWechatUser(wechatUserId);
Long dateDiff = DateUtils.getDateDiff(wechatUser.getCreatedDate(), new Date());
if(dateDiff==0){
return 1L;
}
return dateDiff;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment