正式环境取消短信发送

wushunjie
杜函宇 2 months ago
parent 9e29e2b043
commit 19a667c43a

@ -53,6 +53,9 @@ public class TimeChange {
@Value("${isTiming}") @Value("${isTiming}")
private Boolean isTiming; private Boolean isTiming;
@Value("${updateEnterprise}")
private Boolean updateEnterprise;
@Autowired @Autowired
private ISysJobService jobService; private ISysJobService jobService;
/** /**
@ -170,7 +173,7 @@ public class TimeChange {
*/ */
@Scheduled(cron = "0 0 2 * * *") @Scheduled(cron = "0 0 2 * * *")
public void changeEnterpriseInfo() { public void changeEnterpriseInfo() {
if (isTiming) { if (updateEnterprise) {
List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list(); List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list();
List<BmsEnterpriseBasicInfo> allList = new ArrayList<>(); List<BmsEnterpriseBasicInfo> allList = new ArrayList<>();
for (BmsEnterpriseBasicInfo items : list) { for (BmsEnterpriseBasicInfo items : list) {
@ -213,7 +216,7 @@ public class TimeChange {
*/ */
@Scheduled(cron = "0 0 3 * * *") @Scheduled(cron = "0 0 3 * * *")
public void changeContacts() { public void changeContacts() {
if (isTiming) { if (updateEnterprise) {
List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list(); List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list();
for (BmsEnterpriseBasicInfo items : list) { for (BmsEnterpriseBasicInfo items : list) {
String contacts = enterpriseUrl + "/645383/qyllrytyshxydm"; String contacts = enterpriseUrl + "/645383/qyllrytyshxydm";

@ -65,6 +65,8 @@ spring:
returnUrl: http://39.101.188.84:9999/demo/JinJiHu returnUrl: http://39.101.188.84:9999/demo/JinJiHu
#returnUrl: http://192.168.0.113:80 #returnUrl: http://192.168.0.113:80
#定时任务更新企业信息和联系人的开启 #定时任务更新企业信息和联系人的开启
updateEnterprise: false
#发送短信
isTiming: false isTiming: false
# 开发环境配置 # 开发环境配置

@ -115,7 +115,9 @@ knife4j:
#自己客户端地址 #自己客户端地址
returnUrl: https://idp.sipac.gov.cn/bms returnUrl: https://idp.sipac.gov.cn/bms
#定时任务更新企业信息和联系人的开启 #定时任务更新企业信息和联系人的开启
isTiming: true updateEnterprise: true
#发送短信
isTiming: false
#企业端正式环境应用系统编号 #企业端正式环境应用系统编号
enterpriseAppId: 03f70874-39e9-11ef-bbd6-fa163e2b2e10 enterpriseAppId: 03f70874-39e9-11ef-bbd6-fa163e2b2e10

@ -65,6 +65,8 @@ spring:
returnUrl: http://39.101.188.84:9999/demo/JinJiHuTest returnUrl: http://39.101.188.84:9999/demo/JinJiHuTest
#returnUrl: http://192.168.0.113:80 #returnUrl: http://192.168.0.113:80
#定时任务更新企业信息和联系人的开启 #定时任务更新企业信息和联系人的开启
updateEnterprise: false
#发送短信
isTiming: false isTiming: false
# 开发环境配置 # 开发环境配置

@ -34,7 +34,7 @@ spring:
# 国际化资源文件路径 # 国际化资源文件路径
basename: i18n/messages basename: i18n/messages
profiles: profiles:
active: druid active: internet
# 文件上传 # 文件上传
servlet: servlet:
multipart: multipart:

Loading…
Cancel
Save