fix:调整游戏SDK传参
feat:游戏余额不足跳转充值页,增加提示弹窗
This commit is contained in:
@@ -2,6 +2,8 @@ package com.chwl.app.ui.webview.baishun
|
||||
|
||||
import android.webkit.JavascriptInterface
|
||||
import androidx.annotation.Keep
|
||||
import com.chwl.app.R
|
||||
import com.chwl.app.common.widget.dialog.DialogUiHelper
|
||||
import com.chwl.app.ui.pay.ChargeActivity
|
||||
import com.example.lib_utils.log.ILog
|
||||
import com.google.gson.Gson
|
||||
@@ -37,7 +39,7 @@ class BaiShunGameJSBridge(val activity: BaiShunGameWebActivity) : ILog {
|
||||
public fun gameRecharge(params: String) {
|
||||
logD("游戏调⽤gameRecharge")
|
||||
activity.runOnUiThread {
|
||||
ChargeActivity.start(activity)
|
||||
DialogUiHelper.showNeedCharge(activity, activity.dialogManager)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -30,7 +30,7 @@ class BaiShunGameConfig : Serializable {
|
||||
}
|
||||
|
||||
fun reloadDynamicParams() {
|
||||
roomId = AvRoomDataManager.get().roomId.toString()
|
||||
roomId = AvRoomDataManager.get().roomUid.toString()
|
||||
userId = AuthModel.get().currentUid.toString()
|
||||
language = when (LanguageHelper.getCurrentLanguageType()) {
|
||||
LanguageHelper.AR -> {
|
||||
|
Reference in New Issue
Block a user