|
@@ -142,7 +142,10 @@ export const api = !global.android
|
|
return await new Promise<string>((resolve) => {
|
|
return await new Promise<string>((resolve) => {
|
|
const apiName = `getImageCallback${count++}`;
|
|
const apiName = `getImageCallback${count++}`;
|
|
global[apiName] = (base64) => {
|
|
global[apiName] = (base64) => {
|
|
- // console.error("请求url:" + fileUrl, "返回:" + base64.substring(0, 60))
|
|
|
|
|
|
+ console.error(
|
|
|
|
+ "请求url:" + fileUrl,
|
|
|
|
+ "返回:" + base64.substring(0, 60)
|
|
|
|
+ );
|
|
resolve(URL.createObjectURL(base64ToBlob(base64)));
|
|
resolve(URL.createObjectURL(base64ToBlob(base64)));
|
|
delete global[apiName];
|
|
delete global[apiName];
|
|
};
|
|
};
|