云函数 cloud.deleteFile 无法删除云存储中的文件?
const cloud = require( 'wx-server-sdk' ) cloud.init() exports.main = async (event, context) => { let result = await cloud.deleteFile({ fileList: [event.val] }) return { ...result } } |
返回结果:
{ "fileList" :[{ "fileID" : "cloud://masked.containername/wxe3973c4126f6ebef.o6zAJs4qRcdzUrocyafCXQ9Sl-f8.78oRqQxtEqH37f6c1b92421fa8c6f9e595ef9638a743.png" , "status" :-503003, "errMsg" : "storage file not exists" }], "errMsg" : "deleteFile:ok" } |
但存储中存在该文件ID:
请官方人员和遇到过类似情形的开发人员帮助,谢谢!