feat: add cigarette price
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -47,6 +47,8 @@ class CigaretteCommand : BaseCommand() {
|
||||
.addNewLine()
|
||||
.addText("焦油量: ${it.tar}mg | 尼古丁含量: ${it.nicotine}mg")
|
||||
.addNewLine()
|
||||
.addText("参考价: 单盒: ${it.packPrice}元 | 整条: ${it.barPrice}元")
|
||||
.addNewLine()
|
||||
}
|
||||
listener.sendGroupMessage(message.groupId, msg.build())
|
||||
}
|
||||
|
||||
@@ -22,7 +22,11 @@ data class Cigarette(
|
||||
val cover: String,
|
||||
val type: CigaretteType,
|
||||
val tar: Float,
|
||||
val nicotine: Float
|
||||
val nicotine: Float,
|
||||
@SerializedName("packprice")
|
||||
val packPrice: Float,
|
||||
@SerializedName("barprice")
|
||||
val barPrice: Float
|
||||
)
|
||||
|
||||
data class CigaretteType(
|
||||
|
||||
Reference in New Issue
Block a user