用户选择图片提示以及选择器弯曲度数
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user