diff --git a/i18n/en-US.json b/i18n/en-US.json index eee7d78..03bdd9f 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -1225,5 +1225,6 @@ "see_original":"查看原文", "forward":"Forward", "copy_download_url":"复制下载地址", - "total_friends_nus":"共/s1位朋友" + "total_friends_nus":"共/s1位朋友", + "hava_error_photo":"有图片违规" } \ No newline at end of file diff --git a/i18n/ja-JP.json b/i18n/ja-JP.json index 8997dd6..52a1d63 100644 --- a/i18n/ja-JP.json +++ b/i18n/ja-JP.json @@ -1225,5 +1225,6 @@ "see_original":"查看原文", "forward":"转发", "copy_download_url":"复制下载地址", - "total_friends_nus":"共/s1位朋友" + "total_friends_nus":"共/s1位朋友", + "hava_error_photo":"有图片违规" } \ No newline at end of file diff --git a/i18n/ko-KR.json b/i18n/ko-KR.json index 8f9efaf..9808748 100644 --- a/i18n/ko-KR.json +++ b/i18n/ko-KR.json @@ -1225,5 +1225,6 @@ "see_original":"查看原文", "forward":"转发", "copy_download_url":"复制下载地址", - "total_friends_nus":"共/s1位朋友" + "total_friends_nus":"共/s1位朋友", + "hava_error_photo":"有图片违规" } \ No newline at end of file diff --git a/i18n/vi-VN.json b/i18n/vi-VN.json index aafb5f6..3937c86 100644 --- a/i18n/vi-VN.json +++ b/i18n/vi-VN.json @@ -1225,5 +1225,6 @@ "see_original": "查看原文", "forward": "转发", "copy_download_url": "复制下载地址", - "total_friends_nus":"共/s1位朋友" + "total_friends_nus":"共/s1位朋友", + "hava_error_photo":"有图片违规" } \ No newline at end of file diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json index 8a5cf30..e10f93a 100644 --- a/i18n/zh-CN.json +++ b/i18n/zh-CN.json @@ -1225,5 +1225,6 @@ "see_original":"查看原文", "forward":"转发", "copy_download_url":"复制下载地址", - "total_friends_nus":"共/s1位朋友" + "total_friends_nus":"共/s1位朋友", + "hava_error_photo":"有图片违规" } \ No newline at end of file diff --git a/i18n/zh-HK.json b/i18n/zh-HK.json index 65e7d09..86d8c83 100644 --- a/i18n/zh-HK.json +++ b/i18n/zh-HK.json @@ -1225,5 +1225,6 @@ "see_original":"查看原文", "forward":"转发", "copy_download_url":"複製下載地址", - "total_friends_nus":"共/s1位朋友" + "total_friends_nus":"共/s1位朋友", + "hava_error_photo":"有圖片違規" } \ No newline at end of file diff --git a/lib/generated/i18n.dart b/lib/generated/i18n.dart index 2919dec..1f762a6 100644 --- a/lib/generated/i18n.dart +++ b/lib/generated/i18n.dart @@ -2487,6 +2487,8 @@ class I18n implements WidgetsLocalizations { String get copy_download_url => "复制下载地址"; /// "共/s1位朋友" String get total_friends_nus => "共/s1位朋友"; + /// "有图片违规" + String get hava_error_photo => "有图片违规"; } class _I18n_en_US extends I18n { @@ -6180,6 +6182,9 @@ class _I18n_vi_VN extends I18n { /// "共/s1位朋友" @override String get total_friends_nus => "共/s1位朋友"; + /// "有图片违规" + @override + String get hava_error_photo => "有图片违规"; @override TextDirection get textDirection => TextDirection.ltr; @@ -9869,6 +9874,9 @@ class _I18n_zh_HK extends I18n { /// "共/s1位朋友" @override String get total_friends_nus => "共/s1位朋友"; + /// "有圖片違規" + @override + String get hava_error_photo => "有圖片違規"; @override TextDirection get textDirection => TextDirection.ltr; @@ -13558,6 +13566,9 @@ class _I18n_zh_CN extends _I18n_zh_HK { /// "共/s1位朋友" @override String get total_friends_nus => "共/s1位朋友"; + /// "有图片违规" + @override + String get hava_error_photo => "有图片违规"; @override TextDirection get textDirection => TextDirection.ltr; @@ -17247,6 +17258,9 @@ class _I18n_ko_KR extends I18n { /// "共/s1位朋友" @override String get total_friends_nus => "共/s1位朋友"; + /// "有图片违规" + @override + String get hava_error_photo => "有图片违规"; @override TextDirection get textDirection => TextDirection.ltr; @@ -20936,6 +20950,9 @@ class _I18n_ja_JP extends I18n { /// "共/s1位朋友" @override String get total_friends_nus => "共/s1位朋友"; + /// "有图片违规" + @override + String get hava_error_photo => "有图片违规"; @override TextDirection get textDirection => TextDirection.ltr; diff --git a/lib/home/ProfilePage.dart b/lib/home/ProfilePage.dart index c87b36c..539ed5b 100644 --- a/lib/home/ProfilePage.dart +++ b/lib/home/ProfilePage.dart @@ -453,7 +453,9 @@ class _ProfilePageState extends State if (resData['data']['msg'] != '' && resData['data']['msg'] != null) { showToast(resData['data']['msg']); } - resData['Type'] = 0; + if(resData['msg'].split('|').length !=photos.length){ + showToast(I18n.of(context).hava_error_photo); + } MessageMgr().emit('refresh_photo'); } }