智慧保安后台管理-外网
Administrator
2022-06-09 5152d174947733f7647fe311c18ec10c7422e0f7
远程推送ip 修改
4 files modified
22 ■■■■■ changed files
src/main/java/org/springblade/modules/quartz/task/Task.java 6 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/service/impl/UserServiceImpl.java 12 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/training/controller/TrainingRegistrationController.java 2 ●●● patch | view | raw | blame | history
src/main/resources/application-dev.yml 2 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/quartz/task/Task.java
@@ -187,7 +187,7 @@
            ftp.setConnectTimeout(10000);
            //连接
            ftp.connect(ftpHost, ftpPort);
            System.out.println("ftp 连接成功!"+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
            System.out.println("定时任务:处理单个用户新增文件,ftp 连接成功!"+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
            // 登陆
            ftp.login(ftpUserNameIn, ftpPasswordIn);
            // 检验登陆操作的返回码是否正确
@@ -212,8 +212,8 @@
            FTPFile[] files = ftp.listFiles();
            //文件个数大于10个时开始处理
//            if (files.length==0 || files.length<6){
            if (files.length==0){
            if (files.length==0 || files.length<10){
//            if (files.length==0){
                ftp.logout();
                return false;
            }
src/main/java/org/springblade/modules/system/service/impl/UserServiceImpl.java
@@ -1377,7 +1377,7 @@
            //调用ftp获取返回数据
            while (true){
                try {
                    Thread.sleep(3000);
                    Thread.sleep(4000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
@@ -1389,7 +1389,7 @@
                }
                else {
                    count++;
                    if (count == 60) {
                    if (count == 20) {
                        break;
                    }
                }
@@ -1655,7 +1655,7 @@
            //调用ftp获取返回数据
            while (true){
                try {
                    Thread.sleep(2000);
                    Thread.sleep(4000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
@@ -1665,6 +1665,12 @@
                if (result.getCode() == 200) {
                    break;
                }
                else {
                    count++;
                    if (count == 20) {
                        break;
                    }
                }
            }
        }
src/main/java/org/springblade/modules/training/controller/TrainingRegistrationController.java
@@ -341,7 +341,7 @@
            }
            else {
                count++;
                if (count == 90) {
                if (count == 30) {
                    break;
                }
            }
src/main/resources/application-dev.yml
@@ -52,7 +52,7 @@
  username: root
  password: ZHba@0112
#  qfqkBaseApiUrl: http://61.131.136.25:2082/api
  qfqkBaseApiUrl: http://localhost:83
  qfqkBaseApiUrl: http://192.168.90.24:83
#第三方登陆
social: