|
|
@ -47,7 +47,7 @@ class EnterpriseInformationForTypeAct : BaseListAct<EnterpriseInformationVm>() {
|
|
|
|
when(bean.fileFormat){ // 格式1,word,2,pdf,3.文本,4.excel,5.音频。6.链接
|
|
|
|
when(bean.fileFormat){ // 格式1,word,2,pdf,3.文本,4.excel,5.音频。6.链接
|
|
|
|
1->{
|
|
|
|
1->{
|
|
|
|
if (!TextUtils.isEmpty(bean.fileUrl)){
|
|
|
|
if (!TextUtils.isEmpty(bean.fileUrl)){
|
|
|
|
var filePath = FileDownloadUtils.getDefaultSaveRootPath() + File.separator + "zj365" + File.separator + "${bean.title}.word"
|
|
|
|
var filePath = FileDownloadUtils.getDefaultSaveRootPath() + File.separator + "zj365" + File.separator + "${bean.title}.doc"
|
|
|
|
var file = File(filePath)
|
|
|
|
var file = File(filePath)
|
|
|
|
if (file.exists()){
|
|
|
|
if (file.exists()){
|
|
|
|
file.delete()
|
|
|
|
file.delete()
|
|
|
|