提交 ef2fcc21 编写于 作者: Q qiang

fix: 优化 uni.getImageInfo 失败返回信息

上级 8151d2f6
import {
invoke
} from '../../bridge'
warpPlusMethod
} from '../util'
export function getImageInfo ({
src
} = {}, callbackId) {
// fixed by hxy
plus.io.getImageInfo({
src,
success (imageInfo) {
invoke(callbackId, {
errMsg: 'getImageInfo:ok',
...imageInfo
})
},
fail () {
invoke(callbackId, {
errMsg: 'getImageInfo:fail'
})
}
})
}
export const getImageInfo = warpPlusMethod(plus.io, 'getImageInfo')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册