用户选择图片提示以及选择器弯曲度数

This commit is contained in:
czz
2025-08-28 17:17:05 +08:00
parent 43475c2a8b
commit ae6933bd96
10 changed files with 12 additions and 13 deletions

View File

@@ -77,7 +77,7 @@ class UserInfoController extends GetControllerEx<UserInfoModel> {
if (image != null) {
int fileSize = await image.length(); // 获取图片大小,单位为字节
if (fileSize > 1048576 * 5) {
apiResponse.msg = "我的.头像限制".tr;
apiResponse.msg = "头像限制".tr;
return apiResponse;
}
String serviceAddress = ServiceConstant.service_address;
@@ -117,7 +117,7 @@ class UserInfoController extends GetControllerEx<UserInfoModel> {
return ApiResponse(code: -1, msg: "服务器失败".tr);
}
} else {
apiResponse.msg = "我的.未选择图片".tr;
apiResponse.msg = "未选择图片".tr;
return apiResponse;
}
} catch (e) {