@xuda.io/ai_module 1.1.4346 → 1.1.4347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +6 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6781,6 +6781,8 @@ const get_profile_image = async function (uid, account_type = 'business', name,
|
|
|
6781
6781
|
|
|
6782
6782
|
return ret.data;
|
|
6783
6783
|
};
|
|
6784
|
+
|
|
6785
|
+
debugger;
|
|
6784
6786
|
try {
|
|
6785
6787
|
let url = await get_url();
|
|
6786
6788
|
if (!url.includes('https://')) {
|
|
@@ -6790,7 +6792,10 @@ const get_profile_image = async function (uid, account_type = 'business', name,
|
|
|
6790
6792
|
try {
|
|
6791
6793
|
file = await get_image_blob_from_downloaded_image(url);
|
|
6792
6794
|
} catch (err) {
|
|
6793
|
-
if (!err.message.includes('Failed to fetch image URL'))
|
|
6795
|
+
if (!err.message.includes('Failed to fetch image URL')) {
|
|
6796
|
+
console.error(err);
|
|
6797
|
+
return '';
|
|
6798
|
+
}
|
|
6794
6799
|
|
|
6795
6800
|
try {
|
|
6796
6801
|
url = await get_url();
|