let fileId = filePath.substr(filePath.lastIndexOf('/') + 1)
const wxfs = wx.getFileSystemManager()
let ruleValue = `imageMogr2/format/jpg/interlace/1/rquality/60`
let rule = {
"is_pic_info": 0,
"rules": [{
"fileid": `${fileId}`,
"rule": ruleValue
}]
}
if (flag == 1) {
if (waterResult && waterResult.ifWaterMark) {
let info = `${waterResult.waterFormat}`
let waterInfo = utils.Base64.encode(info)
let fontColor = utils.Base64.encode(waterResult.waterColor || '#09ff00')
let waterPosition = waterResult.waterPosition || 'center'
let waterRangle = waterResult.waterRangle || 0
let water = `watermark/2/text/${waterInfo}/font/c2ltaGVp6buR5L2TLnR0Zg/fill/${fontColor}/fontsize/50/gravity/${waterPosition}/degree/${waterRangle}/dissolve/100`