|
|
@ -912,11 +912,24 @@ public class SimUtil {
|
|
|
|
filePath = value;
|
|
|
|
filePath = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(fileStr)) {
|
|
|
|
|
|
|
|
if (StringUtils.isEmpty(filePath)) {
|
|
|
|
HashMap<String, String> hashMap = ValueTypeUtil.checkFilePathAndName(context, fileType);
|
|
|
|
HashMap<String, String> hashMap = ValueTypeUtil.checkFilePathAndName(context, fileType);
|
|
|
|
filePath = hashMap.get(UpdateSysConfigUtil.FILEPATH);
|
|
|
|
filePath = hashMap.get(UpdateSysConfigUtil.FILEPATH);
|
|
|
|
fileName = hashMap.get(UpdateSysConfigUtil.FILENAME);
|
|
|
|
fileName = hashMap.get(UpdateSysConfigUtil.FILENAME);
|
|
|
|
|
|
|
|
if (StringUtils.isEmpty(filePath) || StringUtils.isEmpty(fileName)) {
|
|
|
|
|
|
|
|
ifmessageCorrect = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
filePath += fileName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(filePath)) {
|
|
|
|
byte[] decode = Base64.decode(fileStr, Base64.NO_WRAP);
|
|
|
|
byte[] decode = Base64.decode(fileStr, Base64.NO_WRAP);
|
|
|
|
FilesUtils.writeFile(filePath + fileName, decode);
|
|
|
|
FilesUtils.writeFile(filePath, decode);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ifmessageCorrect = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception ex) {
|
|
|
|
} catch (Exception ex) {
|
|
|
|
ex.printStackTrace();
|
|
|
|
ex.printStackTrace();
|
|
|
|