From c9c7421d9f66dfc5f805ef9d17978babb1bfab9e Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Fri, 17 May 2024 17:21:44 +0800 Subject: [PATCH] =?UTF-8?q?uploadFirmware=20=E4=B8=8A=E4=BC=A0=E5=9B=BA?= =?UTF-8?q?=E4=BB=B6=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/jsowell/common/constant/Constants.java | 2 ++ .../jsowell/pile/service/impl/YKCPushCommandServiceImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jsowell-common/src/main/java/com/jsowell/common/constant/Constants.java b/jsowell-common/src/main/java/com/jsowell/common/constant/Constants.java index ee0a0903e..d99c8cb6e 100644 --- a/jsowell-common/src/main/java/com/jsowell/common/constant/Constants.java +++ b/jsowell-common/src/main/java/com/jsowell/common/constant/Constants.java @@ -60,9 +60,11 @@ public class Constants { // FTP用户名 public static final String updateServerUserName = "ftptest"; + public static final String updateServerUserName2 = "jsowellftp"; // FTP密码 public static final String updateServerPassword = "aEYU^q=8t"; + public static final String updateServerPassword2 = "ZzJeZRB6fDRcnfkz"; public static final String filePath = "/update.bin"; diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/YKCPushCommandServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/YKCPushCommandServiceImpl.java index e0b69ef2a..dfd6620c3 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/YKCPushCommandServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/YKCPushCommandServiceImpl.java @@ -341,10 +341,10 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService { byte[] updateServerPortByteArr = BytesUtil.checkLengthAndBehindAppendZero(BytesUtil.hexString2Bytes(Integer.toHexString(command.getPort())), 4); // 用户名 - byte[] userNameByteArr = BytesUtil.checkLengthAndBehindAppendZero(BytesUtil.str2Asc(Constants.updateServerUserName), 32); + byte[] userNameByteArr = BytesUtil.checkLengthAndBehindAppendZero(BytesUtil.str2Asc(Constants.updateServerUserName2), 32); // 密码 - byte[] passwordByteArr = BytesUtil.checkLengthAndBehindAppendZero(BytesUtil.str2Asc(Constants.updateServerPassword), 32); + byte[] passwordByteArr = BytesUtil.checkLengthAndBehindAppendZero(BytesUtil.str2Asc(Constants.updateServerPassword2), 32); // 文件路径 byte[] filePathByteArr = BytesUtil.checkLengthAndBehindAppendZero(BytesUtil.str2Asc(command.getFilePath()), 64);