提交 9ef858bd 编写于 作者: Q qiang

chore: build app

上级 68553af2
...@@ -6707,7 +6707,8 @@ var serviceContext = (function () { ...@@ -6707,7 +6707,8 @@ var serviceContext = (function () {
function chooseImage$1 ({ function chooseImage$1 ({
count, count,
sizeType, sizeType,
sourceType sourceType,
crop
} = {}, callbackId) { } = {}, callbackId) {
const errorCallback = warpPlusErrorCallback(callbackId, 'chooseImage', 'cancel'); const errorCallback = warpPlusErrorCallback(callbackId, 'chooseImage', 'cancel');
...@@ -6723,7 +6724,7 @@ var serviceContext = (function () { ...@@ -6723,7 +6724,7 @@ var serviceContext = (function () {
// 压缩阈值 0.5 兆 // 压缩阈值 0.5 兆
const THRESHOLD = 1024 * 1024 * 0.5; const THRESHOLD = 1024 * 1024 * 0.5;
// 判断是否需要压缩 // 判断是否需要压缩
if (sizeType.includes('compressed') && size > THRESHOLD) { if (!crop && sizeType.includes('compressed') && size > THRESHOLD) {
return compressImage$1(path).then(dstPath => { return compressImage$1(path).then(dstPath => {
path = dstPath; path = dstPath;
return getFileInfo$2(path) return getFileInfo$2(path)
...@@ -6751,7 +6752,8 @@ var serviceContext = (function () { ...@@ -6751,7 +6752,8 @@ var serviceContext = (function () {
camera.captureImage(path => successCallback([path]), camera.captureImage(path => successCallback([path]),
errorCallback, { errorCallback, {
filename: TEMP_PATH + '/camera/', filename: TEMP_PATH + '/camera/',
resolution: 'high' resolution: 'high',
crop
}); });
} }
...@@ -6761,7 +6763,8 @@ var serviceContext = (function () { ...@@ -6761,7 +6763,8 @@ var serviceContext = (function () {
multiple: true, multiple: true,
system: false, system: false,
filename: TEMP_PATH + '/gallery/', filename: TEMP_PATH + '/gallery/',
permissionAlert: true permissionAlert: true,
crop
}); });
} }
...@@ -7801,7 +7804,8 @@ var serviceContext = (function () { ...@@ -7801,7 +7804,8 @@ var serviceContext = (function () {
errorCallback({ errorCallback({
code: '30008', code: '30008',
message: '用户点击了自定义按钮', message: '用户点击了自定义按钮',
index index,
provider: button.provider
}); });
}); });
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册