龍神送財金豆确认弹窗
This commit is contained in:
@@ -11,6 +11,7 @@ import androidx.fragment.app.FragmentActivity;
|
||||
import com.blankj.utilcode.util.GsonUtils;
|
||||
import com.lxj.xpopup.XPopup;
|
||||
import com.lxj.xpopup.core.CenterPopupView;
|
||||
import com.yunbao.common.dialog.DragonRuleConfirmPopup;
|
||||
import com.yunbao.common.dialog.DragonRulePopup;
|
||||
import com.yunbao.common.http.HttpCallback;
|
||||
import com.yunbao.common.http.LiveHttpUtil;
|
||||
@@ -68,7 +69,13 @@ public class DragonSendsMoneyPopup extends CenterPopupView {
|
||||
long money = Long.parseLong(dragonMoney);
|
||||
if (goldMoney >= money) {
|
||||
if (money >= 1000) {
|
||||
LiveNetManager.get(getContext())
|
||||
// 显示确认弹窗
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new DragonRuleConfirmPopup(getContext(),goldMoney,money,mLiveUid))
|
||||
.show();
|
||||
dismiss();
|
||||
|
||||
/* LiveNetManager.get(getContext())
|
||||
.sendMoneyLong(mLiveUid, String.valueOf(money), new com.yunbao.common.http.base.HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
@@ -81,7 +88,7 @@ public class DragonSendsMoneyPopup extends CenterPopupView {
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(error);
|
||||
}
|
||||
});
|
||||
});*/
|
||||
} else {
|
||||
ToastUtil.show(WordUtil.isNewZh() ? "金豆數量不低於1000" : "The number of golden beans is not less than 1000");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user