fix: 修復 購買bug
This commit is contained in:
@@ -167,7 +167,7 @@ class RoomBgSetDialog : BaseDialogFragment<DialogRoomBgSetBinding>() {
|
||||
}
|
||||
|
||||
private fun select(data: RoomBgInfo.Item) {
|
||||
if (data.remainHour != -1) {
|
||||
if (data.remainHour != -1 || data.type == RoomBgInfo.Type.T_FREE) {
|
||||
if (data.status == RoomBgInfo.Status.S_SUCCESS) {
|
||||
postSelect(data.id)
|
||||
.compose(bindToLifecycle())
|
||||
@@ -181,6 +181,7 @@ class RoomBgSetDialog : BaseDialogFragment<DialogRoomBgSetBinding>() {
|
||||
.subscribe()
|
||||
}
|
||||
} else {
|
||||
if (data.status == RoomBgInfo.Status.S_REJECT) return // 拒審只能刪除
|
||||
showPreViewDialog(null, data.url, data.id, true)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user