Commit 8f84f536fc2706bcebf2188c7714bf345bdfb9b4

Authored by wdn127929
1 parent 68c8ce6e

升级更换插件遗留问题(已预订顶端日历显示问题& 微信分享图片大小问题&&正月三十显示问题)

@@ -67,20 +67,20 @@ class _FinanceManageHomePageState extends State<FinanceManageHomePage> { @@ -67,20 +67,20 @@ class _FinanceManageHomePageState extends State<FinanceManageHomePage> {
67 body: SingleChildScrollView( 67 body: SingleChildScrollView(
68 child: Column( 68 child: Column(
69 children: [ 69 children: [
70 - _item('收银资料上传', () {  
71 - NavigatorUtil.goEnterpriseInformationUploadPage(context);  
72 - }),  
73 - _item('微信商户账户开通结果查询', () {}),  
74 - _item('支付返券', () {  
75 - NavigatorUtil.goPaymentGiftPage(context);  
76 - }), 70 + // _item('收银资料上传', () {
  71 + // NavigatorUtil.goEnterpriseInformationUploadPage(context);
  72 + // }),
  73 + // _item('微信商户账户开通结果查询', () {}),
  74 + // _item('支付返券', () {
  75 + // NavigatorUtil.goPaymentGiftPage(context);
  76 + // }),
77 _item('门店收款码', () { 77 _item('门店收款码', () {
78 NavigatorUtil.goPaymentCodePage(context); 78 NavigatorUtil.goPaymentCodePage(context);
79 }), 79 }),
80 _item('交易记录', () { 80 _item('交易记录', () {
81 NavigatorUtil.goTransactionRecordHomePage(context); 81 NavigatorUtil.goTransactionRecordHomePage(context);
82 }), 82 }),
83 - _item('提现设置', () {}) 83 + // _item('提现设置', () {})
84 ], 84 ],
85 ), 85 ),
86 ), 86 ),
@@ -72,8 +72,9 @@ class _BirthdaySettingPageState extends State<BirthdaySettingPage> { @@ -72,8 +72,9 @@ class _BirthdaySettingPageState extends State<BirthdaySettingPage> {
72 customerProvider.sellerGuestData!.birthdayNoticeDay ?? ''; 72 customerProvider.sellerGuestData!.birthdayNoticeDay ?? '';
73 pushMemorialDayC.text = 73 pushMemorialDayC.text =
74 customerProvider.sellerGuestData!.commemorationDay ?? ''; 74 customerProvider.sellerGuestData!.commemorationDay ?? '';
75 - customerProvider.notifyListeners(); 75 +
76 } 76 }
  77 + customerProvider.notifyListeners();
77 } 78 }
78 79
79 ///修改客情配置 80 ///修改客情配置
@@ -215,9 +215,8 @@ class CustomerProvider extends ChangeNotifier { @@ -215,9 +215,8 @@ class CustomerProvider extends ChangeNotifier {
215 data: params, showLoading: isShowLoading); 215 data: params, showLoading: isShowLoading);
216 if (baseResp == null) return null; 216 if (baseResp == null) return null;
217 if (baseResp.code == Constant.status_success) { 217 if (baseResp.code == Constant.status_success) {
218 - saiYouYunBirData = SaiYouYunBirthdayModel.fromJson(  
219 - baseResp.responseData!)  
220 - .data; 218 + saiYouYunBirData =
  219 + SaiYouYunBirthdayModel.fromJson(baseResp.responseData!).data;
221 pageStateBirthday = PageState.Success; 220 pageStateBirthday = PageState.Success;
222 } else { 221 } else {
223 // if (baseResp != null) { 222 // if (baseResp != null) {
@@ -555,40 +554,37 @@ class CustomerProvider extends ChangeNotifier { @@ -555,40 +554,37 @@ class CustomerProvider extends ChangeNotifier {
555 BaseResp<dynamic> baseResp = await DioUtil().request<dynamic>( 554 BaseResp<dynamic> baseResp = await DioUtil().request<dynamic>(
556 context, Method.post, HttpUrl.get_customer_activity, 555 context, Method.post, HttpUrl.get_customer_activity,
557 data: params, showLoading: false); 556 data: params, showLoading: false);
558 - if (baseResp == null) return [];  
559 - if (baseResp.code == Constant.status_success) {  
560 - couponListSelect = 557 + if (baseResp == null) return [];
  558 + if (baseResp.code == Constant.status_success) {
  559 + couponListSelect =
561 CouponModel.fromJson(baseResp.responseData as Map<String, dynamic>) 560 CouponModel.fromJson(baseResp.responseData as Map<String, dynamic>)
562 .data! 561 .data!
563 .cast<CouponSunModel>(); 562 .cast<CouponSunModel>();
564 - // 屏蔽type==2 的券 我的优惠券  
565 - List<CouponSunModel> temp = [];  
566 - for (int i = 0; i < couponListSelect!.length; i++) {  
567 - if (couponListSelect![i].isType == '2' ||  
568 - (couponListSelect![i].isType == '1' &&  
569 - couponListSelect![i].isExamine != '1')) {  
570 - } else {  
571 - temp.add(couponListSelect![i]); 563 + // 屏蔽type==2 的券 我的优惠券
  564 + List<CouponSunModel> temp = [];
  565 + for (int i = 0; i < couponListSelect!.length; i++) {
  566 + if (couponListSelect![i].isType == '2' ||
  567 + (couponListSelect![i].isType == '1' &&
  568 + couponListSelect![i].isExamine != '1')) {
  569 + } else {
  570 + temp.add(couponListSelect![i]);
  571 + }
  572 + }
  573 + couponListSelect = temp;
  574 + notifyListeners();
  575 + } else {
  576 + if (baseResp != null) {
  577 + Utils.showToast(baseResp.msg ?? "");
572 } 578 }
573 } 579 }
574 - couponListSelect = temp;  
575 - notifyListeners();  
576 - } else {  
577 - if (baseResp != null) {  
578 - Utils.showToast(baseResp.msg ?? "");  
579 - }  
580 - }  
581 - return [];  
582 -  
583 - 580 + return [];
584 } catch (error) { 581 } catch (error) {
585 print(error.toString()); 582 print(error.toString());
586 if (error is MyError) { 583 if (error is MyError) {
587 switch (error.type) {} 584 switch (error.type) {}
  585 + }
588 } 586 }
589 -  
590 } 587 }
591 - }  
592 588
593 // //我的客情列表------获取筛选里面的活跃度,自定义标签 589 // //我的客情列表------获取筛选里面的活跃度,自定义标签
594 // getCustomerListWithFilter(BuildContext context) async { 590 // getCustomerListWithFilter(BuildContext context) async {
@@ -1708,8 +1704,7 @@ class CustomerProvider extends ChangeNotifier { @@ -1708,8 +1704,7 @@ class CustomerProvider extends ChangeNotifier {
1708 * */ 1704 * */
1709 1705
1710 ///全店客情首页 1706 ///全店客情首页
1711 - Future<StoreCustomerHomeSunModel?> getSellerGuestManage(  
1712 - BuildContext context, 1707 + Future<StoreCustomerHomeSunModel?> getSellerGuestManage(BuildContext context,
1713 {isShowLoading = true}) async { 1708 {isShowLoading = true}) async {
1714 if (isShowLoading) { 1709 if (isShowLoading) {
1715 pageStateStoreHome = PageState.Loading; 1710 pageStateStoreHome = PageState.Loading;
@@ -2140,8 +2135,7 @@ class CustomerProvider extends ChangeNotifier { @@ -2140,8 +2135,7 @@ class CustomerProvider extends ChangeNotifier {
2140 } 2135 }
2141 2136
2142 //商家修改客情配置 2137 //商家修改客情配置
2143 - Future<bool> setSellerGuest(  
2144 - BuildContext context, Map<String, String?> params, 2138 + Future<bool> setSellerGuest(BuildContext context, Map<String, String?> params,
2145 {bool showLoading = false}) async { 2139 {bool showLoading = false}) async {
2146 try { 2140 try {
2147 BaseResp<dynamic> baseResp = await DioUtil().request<dynamic>( 2141 BaseResp<dynamic> baseResp = await DioUtil().request<dynamic>(
@@ -2231,27 +2225,27 @@ class CustomerProvider extends ChangeNotifier { @@ -2231,27 +2225,27 @@ class CustomerProvider extends ChangeNotifier {
2231 context, Method.post, HttpUrl.seller_guest_get, 2225 context, Method.post, HttpUrl.seller_guest_get,
2232 data: params, showLoading: showLoading, selfDismiss: selfDismiss); 2226 data: params, showLoading: showLoading, selfDismiss: selfDismiss);
2233 if (baseResp != null && baseResp.code == Constant.status_success) { 2227 if (baseResp != null && baseResp.code == Constant.status_success) {
2234 - sellerGuestData = SellerGuestModel.fromJson(  
2235 - baseResp.responseData!)  
2236 - .data; 2228 +
  2229 + sellerGuestData =
  2230 + SellerGuestModel.fromJson(baseResp.responseData!).data;
2237 if (sellerGuestData != null) { 2231 if (sellerGuestData != null) {
2238 isrepair = sellerGuestData!.isAdditional == '1' ? true : false; 2232 isrepair = sellerGuestData!.isAdditional == '1' ? true : false;
2239 isselfphone = sellerGuestData!.isEnterSelf == '1' ? true : false; 2233 isselfphone = sellerGuestData!.isEnterSelf == '1' ? true : false;
2240 pageStateBirthdaySetting = PageState.Success; 2234 pageStateBirthdaySetting = PageState.Success;
2241 return true; 2235 return true;
2242 } 2236 }
  2237 + pageStateBirthdaySetting = PageState.Success;
2243 2238
2244 return false; 2239 return false;
2245 } else { 2240 } else {
2246 if (baseResp != null) { 2241 if (baseResp != null) {
2247 Utils.showToast(baseResp.msg ?? ""); 2242 Utils.showToast(baseResp.msg ?? "");
2248 } 2243 }
  2244 +
2249 return false; 2245 return false;
2250 } 2246 }
2251 } catch (error) { 2247 } catch (error) {
2252 print(error.toString()); 2248 print(error.toString());
2253 - if (error is MyError) {}  
2254 - notifyListeners();  
2255 } 2249 }
2256 return false; 2250 return false;
2257 } 2251 }
@@ -2317,8 +2311,7 @@ class CustomerProvider extends ChangeNotifier { @@ -2317,8 +2311,7 @@ class CustomerProvider extends ChangeNotifier {
2317 } 2311 }
2318 2312
2319 // 商家获取商家标签 2313 // 商家获取商家标签
2320 - Future<List<CustomerLabelSunModel>?> getLabelBySellerid(  
2321 - BuildContext context, 2314 + Future<List<CustomerLabelSunModel>?> getLabelBySellerid(BuildContext context,
2322 {bool showLoading = false}) async { 2315 {bool showLoading = false}) async {
2323 Map<String, String?> params = { 2316 Map<String, String?> params = {
2324 "sellerid": Provider.of<UserModel>(context, listen: false).user!.sellerid, 2317 "sellerid": Provider.of<UserModel>(context, listen: false).user!.sellerid,
@@ -56,12 +56,12 @@ import 'dart:typed_data'; @@ -56,12 +56,12 @@ import 'dart:typed_data';
56 typedef BookTimeSetCallback = void Function(bool needChange); 56 typedef BookTimeSetCallback = void Function(bool needChange);
57 57
58 class Utils { 58 class Utils {
59 - static Future<bool> isImageLargerThan64KB(Uint8List? imageBytes) async { 59 + static Future<bool> isImageLargerThan120KB(Uint8List? imageBytes) async {
60 if (imageBytes == null) { 60 if (imageBytes == null) {
61 return false; 61 return false;
62 } 62 }
63 var fileSize = imageBytes.lengthInBytes; 63 var fileSize = imageBytes.lengthInBytes;
64 - return fileSize > 64 * 1024; // 64KB = 64 * 1024 bytes 64 + return fileSize > 120 * 1024; // 64KB = 120 * 1024 bytes
65 } 65 }
66 66
67 static List<CallLogEntry> removeDuplicates(List<CallLogEntry> items) { 67 static List<CallLogEntry> removeDuplicates(List<CallLogEntry> items) {
@@ -1453,13 +1453,13 @@ class Utils { @@ -1453,13 +1453,13 @@ class Utils {
1453 1453
1454 Fluwx fluwx = Fluwx(); 1454 Fluwx fluwx = Fluwx();
1455 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail); 1455 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
1456 - Uint8List? result; 1456 + Uint8List? result=pngByte;
1457 1457
1458 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) { 1458 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
1459 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片 1459 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
1460 result = resultnew == null 1460 result = resultnew == null
1461 ? null 1461 ? null
1462 - : await compressImage(resultnew, mb: 64 / 1024); 1462 + : await compressImage(resultnew, mb: 120/ 1024);
1463 } 1463 }
1464 var model = new WeChatShareMiniProgramModel( 1464 var model = new WeChatShareMiniProgramModel(
1465 miniProgramType: Constant.wxMiniProgramType, 1465 miniProgramType: Constant.wxMiniProgramType,
@@ -1501,12 +1501,12 @@ class Utils { @@ -1501,12 +1501,12 @@ class Utils {
1501 // Uint8List source = await testComporessList(context, _thumbnail); 1501 // Uint8List source = await testComporessList(context, _thumbnail);
1502 Fluwx fluwx = Fluwx(); 1502 Fluwx fluwx = Fluwx();
1503 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail); 1503 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
1504 - Uint8List? result;  
1505 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) { 1504 + Uint8List? result=pngByte;
  1505 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
1506 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片 1506 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
1507 result = resultnew == null 1507 result = resultnew == null
1508 ? null 1508 ? null
1509 - : await compressImage(resultnew, mb: 64 / 1024); 1509 + : await compressImage(resultnew, mb: 120 / 1024);
1510 } 1510 }
1511 var model = new WeChatShareMiniProgramModel( 1511 var model = new WeChatShareMiniProgramModel(
1512 // miniProgramType: , //体验版 1512 // miniProgramType: , //体验版
@@ -1596,12 +1596,12 @@ class Utils { @@ -1596,12 +1596,12 @@ class Utils {
1596 // Uint8List source = await testComporessList(context, _thumbnail); 1596 // Uint8List source = await testComporessList(context, _thumbnail);
1597 Fluwx fluwx = Fluwx(); 1597 Fluwx fluwx = Fluwx();
1598 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail); 1598 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
1599 - Uint8List? result;  
1600 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) { 1599 + Uint8List? result=pngByte;
  1600 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
1601 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片 1601 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
1602 result = resultnew == null 1602 result = resultnew == null
1603 ? null 1603 ? null
1604 - : await compressImage(resultnew, mb: 64 / 1024); 1604 + : await compressImage(resultnew, mb: 120 / 1024);
1605 } 1605 }
1606 var model = new WeChatShareMiniProgramModel( 1606 var model = new WeChatShareMiniProgramModel(
1607 miniProgramType: Constant.wxMiniProgramType, 1607 miniProgramType: Constant.wxMiniProgramType,
@@ -2029,12 +2029,12 @@ class Utils { @@ -2029,12 +2029,12 @@ class Utils {
2029 String _description = "诚邀您参加储值优惠活动,点击查看详情。"; 2029 String _description = "诚邀您参加储值优惠活动,点击查看详情。";
2030 // Uint8List source = await testComporessList(context, _thumbnail); 2030 // Uint8List source = await testComporessList(context, _thumbnail);
2031 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail); 2031 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
2032 - Uint8List? result;  
2033 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) { 2032 + Uint8List? result=pngByte;
  2033 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
2034 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片 2034 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
2035 result = resultnew == null 2035 result = resultnew == null
2036 ? null 2036 ? null
2037 - : await compressImage(resultnew, mb: 64 / 1024); 2037 + : await compressImage(resultnew, mb: 120 / 1024);
2038 } 2038 }
2039 2039
2040 //跳转小程序 2040 //跳转小程序
@@ -2091,12 +2091,12 @@ class Utils { @@ -2091,12 +2091,12 @@ class Utils {
2091 String _description = "进入查看包间详情,转发同行好友,还可一键导航到饭店"; 2091 String _description = "进入查看包间详情,转发同行好友,还可一键导航到饭店";
2092 // Uint8List source = await testComporessList(context, _thumbnail); 2092 // Uint8List source = await testComporessList(context, _thumbnail);
2093 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail); 2093 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
2094 - Uint8List? result;  
2095 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) { 2094 + Uint8List? result = pngByte;
  2095 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
2096 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片 2096 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
2097 result = resultnew == null 2097 result = resultnew == null
2098 ? null 2098 ? null
2099 - : await compressImage(resultnew, mb: 64 / 1024); 2099 + : await compressImage(resultnew, mb: 120 / 1024);
2100 } 2100 }
2101 //跳转小程序 2101 //跳转小程序
2102 Fluwx fluwx = Fluwx(); 2102 Fluwx fluwx = Fluwx();
@@ -2197,12 +2197,12 @@ class Utils { @@ -2197,12 +2197,12 @@ class Utils {
2197 String _description = "进入查看包间详情,转发同行好友,还可一键导航到饭店"; 2197 String _description = "进入查看包间详情,转发同行好友,还可一键导航到饭店";
2198 // Uint8List source = await testComporessList(context, _thumbnail); 2198 // Uint8List source = await testComporessList(context, _thumbnail);
2199 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail); 2199 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
2200 - Uint8List? result;  
2201 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) { 2200 + Uint8List? result = pngByte;
  2201 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
2202 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片 2202 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
2203 result = resultnew == null 2203 result = resultnew == null
2204 ? null 2204 ? null
2205 - : await compressImage(resultnew, mb: 64 / 1024); 2205 + : await compressImage(resultnew, mb: 120 / 1024);
2206 } 2206 }
2207 // print(result!.length/1024); 2207 // print(result!.length/1024);
2208 //跳转小程序 2208 //跳转小程序
@@ -2264,12 +2264,12 @@ class Utils { @@ -2264,12 +2264,12 @@ class Utils {
2264 //跳转小程序 2264 //跳转小程序
2265 Fluwx fluwx = Fluwx(); 2265 Fluwx fluwx = Fluwx();
2266 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail); 2266 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
2267 - Uint8List? result;  
2268 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) { 2267 + Uint8List? result = pngByte;
  2268 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
2269 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片 2269 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
2270 result = resultnew == null 2270 result = resultnew == null
2271 ? null 2271 ? null
2272 - : await compressImage(resultnew, mb: 64 / 1024); 2272 + : await compressImage(resultnew, mb: 120 / 1024);
2273 } 2273 }
2274 var model = new WeChatShareMiniProgramModel( 2274 var model = new WeChatShareMiniProgramModel(
2275 webPageUrl: _webPageUrl, 2275 webPageUrl: _webPageUrl,
@@ -3094,17 +3094,17 @@ class Utils { @@ -3094,17 +3094,17 @@ class Utils {
3094 "pages/customer/detail_owner_invitation_new?id=$rid&hasInvitation=1&hasSellerShare=1&uid=$uid&paymentId=$depositId"; 3094 "pages/customer/detail_owner_invitation_new?id=$rid&hasInvitation=1&hasSellerShare=1&uid=$uid&paymentId=$depositId";
3095 } 3095 }
3096 Fluwx fluwx = Fluwx(); 3096 Fluwx fluwx = Fluwx();
3097 - Uint8List? result;  
3098 - if (liteStyle == '0') {  
3099 - Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);  
3100 -  
3101 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) {  
3102 - Uint8List? resultnew = await realComporessList(pngByte); //压缩图片  
3103 - result = resultnew == null  
3104 - ? null  
3105 - : await compressImage(resultnew, mb: 64 / 1024);  
3106 - } 3097 + Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
  3098 + Uint8List? result = pngByte;
  3099 + // if (liteStyle == '0') {
  3100 +
  3101 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
  3102 + Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
  3103 + result = resultnew == null
  3104 + ? null
  3105 + : await compressImage(resultnew, mb: 120 / 1024);
3107 } 3106 }
  3107 + // }
3108 3108
3109 var model = new WeChatShareMiniProgramModel( 3109 var model = new WeChatShareMiniProgramModel(
3110 webPageUrl: _webPageUrl, 3110 webPageUrl: _webPageUrl,
@@ -3200,7 +3200,7 @@ class Utils { @@ -3200,7 +3200,7 @@ class Utils {
3200 String _thumbnail = sellerImage == null || sellerImage == '' 3200 String _thumbnail = sellerImage == null || sellerImage == ''
3201 ? 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png' 3201 ? 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'
3202 : sellerImage; 3202 : sellerImage;
3203 - late Uint8List _thumbnailUint8List; 3203 + late Uint8List? _thumbnailUint8List;
3204 print(size(_thumbnail.length)); 3204 print(size(_thumbnail.length));
3205 3205
3206 String dsoltStr = '${ddateHm == null || ddateHm == '' ? '' : ddateHm}'; 3206 String dsoltStr = '${ddateHm == null || ddateHm == '' ? '' : ddateHm}';
@@ -3280,15 +3280,15 @@ class Utils { @@ -3280,15 +3280,15 @@ class Utils {
3280 "pages/customer/detail_owner_invitation_new?id=$rid&hasInvitation=1&hasSellerShare=1&uid=$uid&paymentId=$depositId"; 3280 "pages/customer/detail_owner_invitation_new?id=$rid&hasInvitation=1&hasSellerShare=1&uid=$uid&paymentId=$depositId";
3281 } 3281 }
3282 Fluwx fluwx = Fluwx(); 3282 Fluwx fluwx = Fluwx();
3283 - Uint8List? result; 3283 + // Uint8List? result;
3284 if (liteStyle == '0') { 3284 if (liteStyle == '0') {
3285 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail); 3285 Uint8List? pngByte = await WxSdk.fetchImageAsUint8List(_thumbnail);
3286 -  
3287 - if (pngByte != null && await isImageLargerThan64KB(pngByte)) { 3286 + _thumbnailUint8List = pngByte;
  3287 + if (pngByte != null && await isImageLargerThan120KB(pngByte)) {
3288 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片 3288 Uint8List? resultnew = await realComporessList(pngByte); //压缩图片
3289 - result = resultnew == null 3289 + _thumbnailUint8List= resultnew == null
3290 ? null 3290 ? null
3291 - : await compressImage(resultnew, mb: 64 / 1024); 3291 + : await compressImage(resultnew, mb: 120 / 1024);
3292 } 3292 }
3293 } 3293 }
3294 // print(_thumbnailUint8List.length/1024); 3294 // print(_thumbnailUint8List.length/1024);
@@ -3303,7 +3303,7 @@ class Utils { @@ -3303,7 +3303,7 @@ class Utils {
3303 // miniProgramType: //开发版 3303 // miniProgramType: //开发版
3304 // thumbnail: WeChatImage.binary(source) 3304 // thumbnail: WeChatImage.binary(source)
3305 // thumbnail: WeChatImage.network(_thumbnail) 3305 // thumbnail: WeChatImage.network(_thumbnail)
3306 - thumbData: liteStyle == '0' ? result : _thumbnailUint8List); 3306 + thumbData: _thumbnailUint8List);
3307 3307
3308 // thumbData: ); 3308 // thumbData: );
3309 3309