update 电单车

This commit is contained in:
Guoqs
2024-09-14 17:19:05 +08:00
parent e85e630282
commit 86dd583ad6
6 changed files with 167 additions and 12 deletions

View File

@@ -140,9 +140,9 @@ public class YouDianUtils {
* @return
*/
public static String convertPortNumberToString(int portNumber) {
if (portNumber < 0 || portNumber > 15) {
throw new IllegalArgumentException("Port number must be between 0 and 15.");
}
// if (portNumber < 0 || portNumber > 15) {
// throw new IllegalArgumentException("Port number must be between 0 and 15.");
// }
// 转换为字节数组
return String.format("%02d", portNumber + 1);