This commit is contained in:
2020-08-07 23:42:04 +08:00
parent f9bedd2c62
commit 41747a05a1
32 changed files with 1043 additions and 973 deletions

View File

@@ -114,7 +114,9 @@ end
-- 上传头像
NetProto.uploadUserHeadIcon = function(path, finishCallback)
NetProto._uploadFile("updateUserImg", path, "", MyUtl.CompressImage(path, 512), finishCallback)
-- 把文件名转成jpg
local _path = joinStr( Path.GetPathRoot(path), Path.GetFileNameWithoutExtension(path), ".jpg")
NetProto._uploadFile("updateUserImg", _path, "", MyUtl.CompressImage(path, 512), finishCallback)
end
NetProto.uploadFile = function(path, uploadPath, finishCallback)