-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add height, width, size and imageType attribute to Image class #1548
Conversation
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/internal/message/imagesImpl.kt
Outdated
Show resolved
Hide resolved
问题1:待review(考虑失败时之前的检测方案?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public inline fun Image(imageId: String)
和
Image.Companion.fromId 也应该添加这些参数的重载
对于这些参数的重载应该是无意义的(这根据服务器上存储的文件而定而非由用户指定) 在没有得到实际文件前只提供 |
…nd OrNull version for match method
Ready for reviewing again |
mirai-core/src/androidMain/kotlin/message/ImagesImplKtAndroid.kt
Outdated
Show resolved
Hide resolved
Ready for reviewing again |
Ready for reviewing again |
Ready for reviewing again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码逻辑似乎无问题
Close #1543 #1204 #1032
可能存在的问题:1.JVM自带库的图片支持格式受限,可能导致之前可以上传的图片在此更改后无法上传2.Android方面目前未测试,可能存在问题编辑:上述问题已通过手搓跨平台代码解决