mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-02 21:18:05 +08:00
uploadFirmware 上传固件接口
This commit is contained in:
@@ -60,9 +60,11 @@ public class Constants {
|
|||||||
|
|
||||||
// FTP用户名
|
// FTP用户名
|
||||||
public static final String updateServerUserName = "ftptest";
|
public static final String updateServerUserName = "ftptest";
|
||||||
|
public static final String updateServerUserName2 = "jsowellftp";
|
||||||
|
|
||||||
// FTP密码
|
// FTP密码
|
||||||
public static final String updateServerPassword = "aEYU^q=8t";
|
public static final String updateServerPassword = "aEYU^q=8t";
|
||||||
|
public static final String updateServerPassword2 = "ZzJeZRB6fDRcnfkz";
|
||||||
|
|
||||||
public static final String filePath = "/update.bin";
|
public static final String filePath = "/update.bin";
|
||||||
|
|
||||||
|
|||||||
@@ -341,10 +341,10 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
|||||||
byte[] updateServerPortByteArr = BytesUtil.checkLengthAndBehindAppendZero(BytesUtil.hexString2Bytes(Integer.toHexString(command.getPort())), 4);
|
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);
|
byte[] filePathByteArr = BytesUtil.checkLengthAndBehindAppendZero(BytesUtil.str2Asc(command.getFilePath()), 64);
|
||||||
|
|||||||
Reference in New Issue
Block a user