Commit d664c5a4 by zhiwj

白名单

parent 32de13c1
......@@ -55,6 +55,8 @@ public class BillingAccountApiServiceImpl implements BillingAccountApiService {
private Config config;
@Autowired
private SmsSendApiService smsSendApiService;
@Autowired
private EnterpriseWhiteListService enterpriseWhiteListService;
@Override
public ServiceResponse<BillingAccountDTO> getByEnterpriseId(Integer enterpriseId) {
......@@ -285,8 +287,8 @@ public class BillingAccountApiServiceImpl implements BillingAccountApiService {
}
private boolean isNotInWhiteList(Integer enterpriseId) {
// todo 判断商户在不在白名单中
return true;
// 判断商户在不在白名单中
return this.enterpriseWhiteListService.getEnterpriseWhiteList(enterpriseId) == null;
}
private void sendTotoItem(Integer enterpriseId) {
......
......@@ -61,6 +61,8 @@ public class SmsRecordApiServiceImpl implements SmsRecordApiService {
private UserOwnerApiService userOwnerApiService;
@Autowired
private InternationalSmsRecordApiService internationalSmsRecordApiService;
@Autowired
private EnterpriseWhiteListService enterpriseWhiteListService;
@Override
public ServiceResponse<Void> verifySendSms(Integer enterpriseId, Integer sendCount, String nationCode) {
......@@ -275,7 +277,6 @@ public class SmsRecordApiServiceImpl implements SmsRecordApiService {
}
private boolean isNotInWhiteList(Integer enterpriseId) {
// todo 判断商户在不在白名单中
return true;
return this.enterpriseWhiteListService.getEnterpriseWhiteList(enterpriseId) == null;
}
}
\ No newline at end of file
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