Skip to content

压缩包是否加密 v1.5.0

方法名

zipIsEncrypted

用法

用法示例

js
module.zipIsEncrypted({
  //压缩文件路径
  path: "/storage/emulated/0/leven_files/1.zip"
}, res => {
  console.log(res)
})

参数说明

参数名参数类型是否必填默认值参数描述
pathString压缩文件路径

回调

回调示例

json
{
    "data": {
        "isEncrypted": false
    },
    "message": "",
    "code": 0
}

回调说明

参数名参数类型参数描述
messageString消息提示
dataObject数据对象
data.isEncryptedBooleantrue:已加密,false:未加密
codeInteger返回类型,0.成功,其他:失败