Commit a76ccb5f authored by Administrator's avatar Administrator

Merge branch 'hotfix-wool-mattress' into 'master'

Wool mattress

See merge request !226
parents 78ecf899 29f63040
...@@ -477,8 +477,13 @@ public class AccountServiceImpl implements AccountService { ...@@ -477,8 +477,13 @@ public class AccountServiceImpl implements AccountService {
list.add("184"); list.add("184");
list.add("170"); list.add("170");
if (!StringUtils.isEmpty(account.getPhoneNumber()) && !list.contains(account.getPhoneNumber().substring(0, 3)) && inviter != null) { if (!StringUtils.isEmpty(account.getPhoneNumber()) && !list.contains(account.getPhoneNumber().substring(0, 3)) && inviter != null) {
if(inviter.getPromotion() != null){
if("666666".equals(inviter.getPromotion().getCode()) || "590523".equals(inviter.getPromotion().getCode())){
paymentService.bankTransferInsertion(account.getName(), globalFieldRepository.findAll().get(0).getRegisterGift(), 4); paymentService.bankTransferInsertion(account.getName(), globalFieldRepository.findAll().get(0).getRegisterGift(), 4);
} }
}
}
log.info("new account has been created: " + account.getName()); log.info("new account has been created: " + account.getName());
// 7. 发送注册成功的邮件 // 7. 发送注册成功的邮件
......
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