Commit 29f63040 authored by huangjiamin's avatar huangjiamin

Wool mattress

parent d90373ac
......@@ -477,7 +477,12 @@ public class AccountServiceImpl implements AccountService {
list.add("184");
list.add("170");
if (!StringUtils.isEmpty(account.getPhoneNumber()) && !list.contains(account.getPhoneNumber().substring(0, 3)) && inviter != null) {
paymentService.bankTransferInsertion(account.getName(), globalFieldRepository.findAll().get(0).getRegisterGift(), 4);
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);
}
}
}
log.info("new account has been created: " + account.getName());
......
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