1:修改获取发送红包的时机,并且添加了当接口返回code=0的时候,也能发送红包
This commit is contained in:
@@ -1085,7 +1085,8 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
// TODO: 发红包
|
||||
fun redDialogView() {
|
||||
RedBagSendDialog(this, roomId,redPacketConfig).show()
|
||||
MvpPre?.getRedpacketConfig()
|
||||
|
||||
}
|
||||
|
||||
var redEnvelopesFragment: RedEnvelopesFragment? = null
|
||||
@@ -3518,7 +3519,6 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
// .joinRoom(SpUtil.getRtmToken(), roomId, SpUtil.getUserId(), false, false);
|
||||
// MvpPre?.postRoomInfo(roomId)
|
||||
MvpPre?.getTasksMessage()
|
||||
MvpPre?.getRedpacketConfig()
|
||||
}
|
||||
|
||||
fun refreshRoomInfo(roomId: String) {
|
||||
@@ -3827,6 +3827,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
override fun getRedpacketConfig(data: RedPacketConfig?) {
|
||||
this.redPacketConfig= data!!
|
||||
RedBagSendDialog(this, roomId,redPacketConfig).show()
|
||||
}
|
||||
|
||||
fun getTasksMessageService(number: Int) {
|
||||
|
||||
Reference in New Issue
Block a user