|
|
|
@@ -38,8 +38,8 @@ public class CreditUtil { |
|
|
|
} |
|
|
|
// 获取生日积分倍率: |
|
|
|
int birthdayScale = WxScoreRules.DEFAULT_SCALE; |
|
|
|
//生日当天 |
|
|
|
if (Objects.nonNull(wxCUserBasicInfo.getBirthdate()) || DateUtils.daysBetween(new Date(), wxCUserBasicInfo.getBirthdate()) == 0) { |
|
|
|
//判断是否生日当天 |
|
|
|
if (Objects.nonNull(wxCUserBasicInfo.getBirthdate()) && DateUtils.daysBetween(new Date(), wxCUserBasicInfo.getBirthdate()) == 0) { |
|
|
|
WxScoreRules rules = wxScoreRulesService.getScoreRules(wxCUser.getTenantId()); |
|
|
|
if (Objects.nonNull(rules) && Objects.nonNull(rules.getScale())) { |
|
|
|
birthdayScale = rules.getScale(); |
|
|
|
|