|
|
@ -93,17 +93,17 @@ export const takePhotoWithWaterMark = async ({ |
|
|
content, |
|
|
content, |
|
|
fontSize, |
|
|
fontSize, |
|
|
color, |
|
|
color, |
|
|
// markDisable: false,
|
|
|
markDisable: false, |
|
|
timeEnable, |
|
|
timeEnable, |
|
|
// locationEnable,
|
|
|
locationEnable, |
|
|
success: (res) => { |
|
|
success: (res) => { |
|
|
console.log('[w6sMedia] takePhotoAndAddWaterMark success 原始返回:', res) |
|
|
console.log('[w6sMedia] takePhotoAndAddWaterMark success 原始返回:', res) |
|
|
console.log('[w6sMedia] 返回字段 imageURL:', res?.result.imageURL, 'key:', res?.result.key, 'imageInfo:', res?.result.imageInfo) |
|
|
console.log('[w6sMedia] 返回字段 imageURL:', res?.result.imageURL, 'key:', res?.result.key, 'imageInfo:', res?.result.imageInfo) |
|
|
getLocation().then((location) => { |
|
|
// getLocation().then((location) => {
|
|
|
console.log('[w6sMedia] 获取定位成功:', location) |
|
|
// console.log('[w6sMedia] 获取定位成功:', location)
|
|
|
// res?.result.location = location
|
|
|
// res?.result.location = location
|
|
|
resolve(res) |
|
|
resolve(res) |
|
|
}) |
|
|
// })
|
|
|
}, |
|
|
}, |
|
|
fail: (err) => { |
|
|
fail: (err) => { |
|
|
console.error('[w6sMedia] takePhotoAndAddWaterMark fail:', err) |
|
|
console.error('[w6sMedia] takePhotoAndAddWaterMark fail:', err) |
|
|
|