Commit b4ea73ff842137a37650aa147f859f39f38cb864

Authored by wdn127929
1 parent 3b75f97f

微信通知 小程序封面模糊

... ... @@ -548,7 +548,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5303;
CURRENT_PROJECT_VERSION = 5304;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ... @@ -696,7 +696,7 @@
CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5303;
CURRENT_PROJECT_VERSION = 5304;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ... @@ -732,7 +732,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5303;
CURRENT_PROJECT_VERSION = 5304;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ...
... ... @@ -761,6 +761,8 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> {
Uint8List newImg = await Utils.testFromFileComporessList(
context, afterImg,
needResize: true);
print(Utils.size(newImg.length));
if (newImg != null) {
String path = await Utils.saveImage(newImg);
if (path == null) {
... ...
... ... @@ -312,9 +312,9 @@ class _BookInfoPageSimState extends State<BookInfoPageSim> {
if (needResize) {
File yourFile = File(pickedFile.path);
Uint8List afterImg = await yourFile.readAsBytes();
Uint8List newImg = await Utils.testFromFileComporessList(
Uint8List newImg = await Utils.testFromFileComporessList5R4(
context, afterImg,
needResize: true);
);
if (newImg != null) {
path = await Utils.saveImage(newImg);
if (path == null) {
... ...
... ... @@ -375,7 +375,7 @@ class UserModel with ChangeNotifier {
Utils.showToast(baseResp.msg ?? "退出登录失败,请稍后重试");
} else {
// if (Platform.isIOS) {
// // XgFlutterPlugin().stopXg();
// XgFlutterPlugin().stopXg();
// }
if (App.sp.containsKey('unionid')) {
//微信登陆的时候,退出清空数据
... ...
... ... @@ -1758,7 +1758,7 @@ class Utils {
quality = 50;
debugPrint("图片大于 1 兆小于 2 兆,质量设置为 50");
} else if (length >= 2 * m && length < 3 * m) {
quality = 60;
quality = 40;
debugPrint("图片大于 2 兆小于 3 兆,质量设置为 40");
} else if (length >= 3 * m && length < 4 * m) {
quality = 30;
... ... @@ -2426,7 +2426,9 @@ class Utils {
// setState(() {
// imageMemory = pngBytes;
// Uint8List result = await resizeImage(pngBytes); //重置图片尺寸
Uint8List result = await testFromFileComporessList(context, pngBytes);
Uint8List result = await realComporessList(pngBytes); //压缩图片
// Uint8List result = await testFromFileComporessList(context, pngBytes,needResize: true);
return result;
}
... ... @@ -2445,6 +2447,8 @@ class Utils {
? 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'
: sellerImage;
Uint8List _thumbnailUint8List;
print(size(_thumbnail.length));
if (liteStyle != '0') {
_thumbnailUint8List = await canvas(
context,
... ... @@ -2454,6 +2458,8 @@ class Utils {
month,
week);
}
print(size(_thumbnailUint8List.length));
String _title =
"您预订的${Provider.of<UserModel>(context, listen: false).user.sellername},已经安排,点击查看详情";
... ...