Showing
5 changed files
with
16 additions
and
8 deletions
| @@ -548,7 +548,7 @@ | @@ -548,7 +548,7 @@ | ||
| 548 | CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; | 548 | CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; |
| 549 | CODE_SIGN_IDENTITY = "Apple Development"; | 549 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 550 | CODE_SIGN_STYLE = Automatic; | 550 | CODE_SIGN_STYLE = Automatic; |
| 551 | - CURRENT_PROJECT_VERSION = 5303; | 551 | + CURRENT_PROJECT_VERSION = 5304; |
| 552 | DEVELOPMENT_TEAM = 8J59HM8B82; | 552 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 553 | ENABLE_BITCODE = NO; | 553 | ENABLE_BITCODE = NO; |
| 554 | FLUTTER_BUILD_MODE = release; | 554 | FLUTTER_BUILD_MODE = release; |
| @@ -696,7 +696,7 @@ | @@ -696,7 +696,7 @@ | ||
| 696 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; | 696 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; |
| 697 | CODE_SIGN_IDENTITY = "Apple Development"; | 697 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 698 | CODE_SIGN_STYLE = Automatic; | 698 | CODE_SIGN_STYLE = Automatic; |
| 699 | - CURRENT_PROJECT_VERSION = 5303; | 699 | + CURRENT_PROJECT_VERSION = 5304; |
| 700 | DEVELOPMENT_TEAM = 8J59HM8B82; | 700 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 701 | ENABLE_BITCODE = NO; | 701 | ENABLE_BITCODE = NO; |
| 702 | FLUTTER_BUILD_MODE = release; | 702 | FLUTTER_BUILD_MODE = release; |
| @@ -732,7 +732,7 @@ | @@ -732,7 +732,7 @@ | ||
| 732 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | 732 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; |
| 733 | CODE_SIGN_IDENTITY = "Apple Development"; | 733 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 734 | CODE_SIGN_STYLE = Automatic; | 734 | CODE_SIGN_STYLE = Automatic; |
| 735 | - CURRENT_PROJECT_VERSION = 5303; | 735 | + CURRENT_PROJECT_VERSION = 5304; |
| 736 | DEVELOPMENT_TEAM = 8J59HM8B82; | 736 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 737 | ENABLE_BITCODE = NO; | 737 | ENABLE_BITCODE = NO; |
| 738 | FLUTTER_BUILD_MODE = release; | 738 | FLUTTER_BUILD_MODE = release; |
| @@ -761,6 +761,8 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { | @@ -761,6 +761,8 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { | ||
| 761 | Uint8List newImg = await Utils.testFromFileComporessList( | 761 | Uint8List newImg = await Utils.testFromFileComporessList( |
| 762 | context, afterImg, | 762 | context, afterImg, |
| 763 | needResize: true); | 763 | needResize: true); |
| 764 | + | ||
| 765 | + print(Utils.size(newImg.length)); | ||
| 764 | if (newImg != null) { | 766 | if (newImg != null) { |
| 765 | String path = await Utils.saveImage(newImg); | 767 | String path = await Utils.saveImage(newImg); |
| 766 | if (path == null) { | 768 | if (path == null) { |
| @@ -312,9 +312,9 @@ class _BookInfoPageSimState extends State<BookInfoPageSim> { | @@ -312,9 +312,9 @@ class _BookInfoPageSimState extends State<BookInfoPageSim> { | ||
| 312 | if (needResize) { | 312 | if (needResize) { |
| 313 | File yourFile = File(pickedFile.path); | 313 | File yourFile = File(pickedFile.path); |
| 314 | Uint8List afterImg = await yourFile.readAsBytes(); | 314 | Uint8List afterImg = await yourFile.readAsBytes(); |
| 315 | - Uint8List newImg = await Utils.testFromFileComporessList( | 315 | + Uint8List newImg = await Utils.testFromFileComporessList5R4( |
| 316 | context, afterImg, | 316 | context, afterImg, |
| 317 | - needResize: true); | 317 | + ); |
| 318 | if (newImg != null) { | 318 | if (newImg != null) { |
| 319 | path = await Utils.saveImage(newImg); | 319 | path = await Utils.saveImage(newImg); |
| 320 | if (path == null) { | 320 | if (path == null) { |
| @@ -375,7 +375,7 @@ class UserModel with ChangeNotifier { | @@ -375,7 +375,7 @@ class UserModel with ChangeNotifier { | ||
| 375 | Utils.showToast(baseResp.msg ?? "退出登录失败,请稍后重试"); | 375 | Utils.showToast(baseResp.msg ?? "退出登录失败,请稍后重试"); |
| 376 | } else { | 376 | } else { |
| 377 | // if (Platform.isIOS) { | 377 | // if (Platform.isIOS) { |
| 378 | - // // XgFlutterPlugin().stopXg(); | 378 | + // XgFlutterPlugin().stopXg(); |
| 379 | // } | 379 | // } |
| 380 | if (App.sp.containsKey('unionid')) { | 380 | if (App.sp.containsKey('unionid')) { |
| 381 | //微信登陆的时候,退出清空数据 | 381 | //微信登陆的时候,退出清空数据 |
| @@ -1758,7 +1758,7 @@ class Utils { | @@ -1758,7 +1758,7 @@ class Utils { | ||
| 1758 | quality = 50; | 1758 | quality = 50; |
| 1759 | debugPrint("图片大于 1 兆小于 2 兆,质量设置为 50"); | 1759 | debugPrint("图片大于 1 兆小于 2 兆,质量设置为 50"); |
| 1760 | } else if (length >= 2 * m && length < 3 * m) { | 1760 | } else if (length >= 2 * m && length < 3 * m) { |
| 1761 | - quality = 60; | 1761 | + quality = 40; |
| 1762 | debugPrint("图片大于 2 兆小于 3 兆,质量设置为 40"); | 1762 | debugPrint("图片大于 2 兆小于 3 兆,质量设置为 40"); |
| 1763 | } else if (length >= 3 * m && length < 4 * m) { | 1763 | } else if (length >= 3 * m && length < 4 * m) { |
| 1764 | quality = 30; | 1764 | quality = 30; |
| @@ -2426,7 +2426,9 @@ class Utils { | @@ -2426,7 +2426,9 @@ class Utils { | ||
| 2426 | // setState(() { | 2426 | // setState(() { |
| 2427 | // imageMemory = pngBytes; | 2427 | // imageMemory = pngBytes; |
| 2428 | // Uint8List result = await resizeImage(pngBytes); //重置图片尺寸 | 2428 | // Uint8List result = await resizeImage(pngBytes); //重置图片尺寸 |
| 2429 | - Uint8List result = await testFromFileComporessList(context, pngBytes); | 2429 | + |
| 2430 | + Uint8List result = await realComporessList(pngBytes); //压缩图片 | ||
| 2431 | + // Uint8List result = await testFromFileComporessList(context, pngBytes,needResize: true); | ||
| 2430 | return result; | 2432 | return result; |
| 2431 | } | 2433 | } |
| 2432 | 2434 | ||
| @@ -2445,6 +2447,8 @@ class Utils { | @@ -2445,6 +2447,8 @@ class Utils { | ||
| 2445 | ? 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png' | 2447 | ? 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png' |
| 2446 | : sellerImage; | 2448 | : sellerImage; |
| 2447 | Uint8List _thumbnailUint8List; | 2449 | Uint8List _thumbnailUint8List; |
| 2450 | + | ||
| 2451 | + print(size(_thumbnail.length)); | ||
| 2448 | if (liteStyle != '0') { | 2452 | if (liteStyle != '0') { |
| 2449 | _thumbnailUint8List = await canvas( | 2453 | _thumbnailUint8List = await canvas( |
| 2450 | context, | 2454 | context, |
| @@ -2454,6 +2458,8 @@ class Utils { | @@ -2454,6 +2458,8 @@ class Utils { | ||
| 2454 | month, | 2458 | month, |
| 2455 | week); | 2459 | week); |
| 2456 | } | 2460 | } |
| 2461 | + | ||
| 2462 | + print(size(_thumbnailUint8List.length)); | ||
| 2457 | String _title = | 2463 | String _title = |
| 2458 | "您预订的${Provider.of<UserModel>(context, listen: false).user.sellername},已经安排,点击查看详情"; | 2464 | "您预订的${Provider.of<UserModel>(context, listen: false).user.sellername},已经安排,点击查看详情"; |
| 2459 | 2465 |
-
Please register or login to post a comment