diff --git a/app/build.gradle b/app/build.gradle
index 2846a3d21..33f632e69 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -166,21 +166,21 @@ android {
}
}
variant.outputs.all {
- def isGoogle = "link"
+ def isGoogle = "链接"
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 1) {
- isGoogle = "Google"
+ isGoogle = "谷歌"
} else if (rootProject.ext.manifestPlaceholders.isGooglePlay == 2) {
isGoogle = "Huawei"
}
- def isPlugin = "all"
+ def isPlugin = "完整"
if (rootProject.ext.manifestPlaceholders.isPluginModel) {
- isPlugin = "plugin"
+ isPlugin = "插件"
}
def isTest = "测试服"
if (rootProject.ext.manifestPlaceholders.serverHost == "https://napi.yaoulive.com") {
isTest = "正式服"
}
- outputFileName = "[${new Date().format("yyyy-MM-dd HHmmss", TimeZone.getTimeZone("GMT+8"))}]PDLive-${defaultConfig.versionName}-${isGoogle}-${isPlugin}-${variant.buildType.name}-${isTest}.apk"
+ outputFileName = "[${new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("GMT+8"))}]PDLive-${defaultConfig.versionName}-${isGoogle}-${isPlugin}-${variant.buildType.name}-${isTest}.apk"
}
}
diff --git a/common/src/main/java/com/yunbao/common/dialog/ActivateEliteBattleOrderPopupWindow.java b/common/src/main/java/com/yunbao/common/dialog/ActivateEliteBattleOrderPopupWindow.java
index 5c96f8984..7a64b2d97 100644
--- a/common/src/main/java/com/yunbao/common/dialog/ActivateEliteBattleOrderPopupWindow.java
+++ b/common/src/main/java/com/yunbao/common/dialog/ActivateEliteBattleOrderPopupWindow.java
@@ -49,14 +49,14 @@ public class ActivateEliteBattleOrderPopupWindow extends CenterPopupView {
findViewById(R.id.enjoy_image).setVisibility(GONE);
findViewById(R.id.elites_image).setVisibility(VISIBLE);
findViewById(R.id.gift_overvalue).setVisibility(VISIBLE);
- ((TextView)findViewById(R.id.gift3_text)).setText(WordUtil.getNewString(R.string.gift_overvalue));
+ ((TextView)findViewById(R.id.gift3_text)).setText(WordUtil.getNewString(R.string.unlock_more_gifts));
} else {
findViewById(R.id.gift_overvalue).setVisibility(GONE);
findViewById(R.id.gift_overvalue3).setVisibility(VISIBLE);
findViewById(R.id.enjoy_image).setVisibility(VISIBLE);
findViewById(R.id.elites_image).setVisibility(GONE);
findViewById(R.id.gift_overvalue).setVisibility(GONE);
- ((TextView)findViewById(R.id.gift3_text)).setText(WordUtil.getNewString(R.string.gift_overvalue3));
+ ((TextView)findViewById(R.id.gift3_text)).setText(WordUtil.getNewString(R.string.unlock_more_gifts2));
}
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.war_order_close), new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
diff --git a/common/src/main/java/com/yunbao/common/dialog/RuleOfWarPopupWindow.java b/common/src/main/java/com/yunbao/common/dialog/RuleOfWarPopupWindow.java
index 9adbd3f05..84321a2f9 100644
--- a/common/src/main/java/com/yunbao/common/dialog/RuleOfWarPopupWindow.java
+++ b/common/src/main/java/com/yunbao/common/dialog/RuleOfWarPopupWindow.java
@@ -1,6 +1,7 @@
package com.yunbao.common.dialog;
import android.content.Context;
+import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
@@ -25,6 +26,12 @@ public class RuleOfWarPopupWindow extends CenterPopupView {
protected void onCreate() {
super.onCreate();
rule=findViewById(R.id.rule);
+ findViewById(R.id.close).setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ dismiss();
+ }
+ });
initData();
}
private void initData(){
@@ -32,7 +39,7 @@ public class RuleOfWarPopupWindow extends CenterPopupView {
.getBattlePassRule(new HttpCallback() {
@Override
public void onSuccess(String data) {
- rule.setText(data);
+ rule.setText(data.replace("\n","\n\n"));
}
@Override
diff --git a/common/src/main/java/com/yunbao/common/dialog/WarOrderExchangeDetailsPopupWindow.java b/common/src/main/java/com/yunbao/common/dialog/WarOrderExchangeDetailsPopupWindow.java
index 610c57a7c..75a49e067 100644
--- a/common/src/main/java/com/yunbao/common/dialog/WarOrderExchangeDetailsPopupWindow.java
+++ b/common/src/main/java/com/yunbao/common/dialog/WarOrderExchangeDetailsPopupWindow.java
@@ -13,6 +13,7 @@ import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.ResponseModel;
import com.yunbao.common.http.base.HttpCallback;
import com.yunbao.common.http.live.LiveNetManager;
+import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.utils.WordUtil;
import com.yunbao.common.views.weight.ViewClicksAntiShake;
@@ -89,6 +90,10 @@ public class WarOrderExchangeDetailsPopupWindow extends CenterPopupView {
orderLevel.setText(buyExp);
BigDecimal needExpBigDecimal = buyExpBigDecimal.multiply(new BigDecimal(mScale));
pointExchange.setText(String.format("%s",needExpBigDecimal));
+ }else if(exp >= mLimitQuantity){
+ ToastUtil.show(WordUtil.getNewString(R.string.battlepass_exchange_buy_max));
+ }else {
+ ToastUtil.show(WordUtil.getNewString(R.string.battlepass_exchange_buy_integral));
}
}
});
diff --git a/common/src/main/res/layout/order_level_popup.xml b/common/src/main/res/layout/order_level_popup.xml
index f7ffef01b..435ecde21 100644
--- a/common/src/main/res/layout/order_level_popup.xml
+++ b/common/src/main/res/layout/order_level_popup.xml
@@ -54,8 +54,10 @@
@@ -83,10 +85,10 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
- android:gravity="center"
- android:inputType="number"
- android:imeOptions="actionSend"
android:background="@null"
+ android:gravity="center"
+ android:imeOptions="actionSend"
+ android:inputType="number"
android:singleLine="true"
android:text="0"
android:textColor="#000000"
diff --git a/common/src/main/res/layout/rule_of_war_popup.xml b/common/src/main/res/layout/rule_of_war_popup.xml
index 2f4bffdeb..b57f0eec2 100644
--- a/common/src/main/res/layout/rule_of_war_popup.xml
+++ b/common/src/main/res/layout/rule_of_war_popup.xml
@@ -14,8 +14,8 @@
android:orientation="vertical">
More Collectible outfits
After opened,the rewards that have reached will be automatically unlocked!
My level
- Purchase experience value:
+ Purchase EXP value:
Buy
This activity has ended. Please collect the unclaimed rewards as soon as possible.Points can be reserved for future use
Exchange Details
%s(points) exchange
exchange
Quantity:
+ Insufficient points
+ The quantity of goods exchanged has reached the upper limit
diff --git a/common/src/main/res/values-zh-rHK/strings.xml b/common/src/main/res/values-zh-rHK/strings.xml
index 908bb1b7b..a08ff9554 100644
--- a/common/src/main/res/values-zh-rHK/strings.xml
+++ b/common/src/main/res/values-zh-rHK/strings.xml
@@ -1415,4 +1415,6 @@
%s(積分) 兌換
兌換
數量:
+ 積分不足
+ 商品兌換數量已達到上限
diff --git a/common/src/main/res/values-zh-rTW/strings.xml b/common/src/main/res/values-zh-rTW/strings.xml
index d80923bed..63a9a830d 100644
--- a/common/src/main/res/values-zh-rTW/strings.xml
+++ b/common/src/main/res/values-zh-rTW/strings.xml
@@ -1414,4 +1414,6 @@
%s(積分) 兌換
兌換
數量:
+ 積分不足
+ 商品兌換數量已達到上限
diff --git a/common/src/main/res/values-zh/strings.xml b/common/src/main/res/values-zh/strings.xml
index b42b77437..437d384f4 100644
--- a/common/src/main/res/values-zh/strings.xml
+++ b/common/src/main/res/values-zh/strings.xml
@@ -1414,4 +1414,6 @@
%s(積分) 兌換
兌換
數量:
+ 積分不足
+ 商品兌換數量已達到上限
diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml
index d3992181d..7fde8ac10 100644
--- a/common/src/main/res/values/strings.xml
+++ b/common/src/main/res/values/strings.xml
@@ -1413,12 +1413,14 @@ Limited ride And limited avatar frame
More Collectible outfits
After opened,the rewards that have reached will be automatically unlocked!
My level
- Purchase experience value:
+ Purchase EXP value:
Buy
This activity has ended. Please collect the unclaimed rewards as soon as possible.Points can be reserved for future use
Exchange Details
%s(points) exchange
exchange
Quantity:
+ Insufficient points
+ The quantity of goods exchanged has reached the upper limit
diff --git a/main/src/main/java/com/yunbao/main/activity/BattlePassActivity.java b/main/src/main/java/com/yunbao/main/activity/BattlePassActivity.java
index a29f1d712..d30054aa0 100644
--- a/main/src/main/java/com/yunbao/main/activity/BattlePassActivity.java
+++ b/main/src/main/java/com/yunbao/main/activity/BattlePassActivity.java
@@ -59,6 +59,7 @@ public class BattlePassActivity extends AbsActivity {
TextView sessionView;
TextView timeView;
TextView levelView;
+ TextView expText;
ProgressBar levelProgressView;
TextView integralView;
Button moreIntegralButton;
@@ -92,6 +93,7 @@ public class BattlePassActivity extends AbsActivity {
tab1 = findViewById(R.id.tab_1);
tab2 = findViewById(R.id.tab_2);
tab3 = findViewById(R.id.tab_3);
+ expText = findViewById(R.id.exp_text);
viewPager = findViewById(R.id.context_layout);
fragments.add(new BattlePassRewardFragment());
fragments.add(new BattlePassMissionFragment());
@@ -121,7 +123,8 @@ public class BattlePassActivity extends AbsActivity {
moreIntegralButton = findViewById(R.id.more_integral);
ViewClicksAntiShake.clicksAntiShake(moreIntegralButton, () -> {
- if(data.getBattlePassUserRecords3()==2){
+ if (data.getBattlePassUserRecords3() == 2) {
+ ToastUtil.show(WordUtil.getNewString(R.string.battlepass_buy_max));
return;
}
new XPopup.Builder(mContext)
@@ -133,7 +136,7 @@ public class BattlePassActivity extends AbsActivity {
new LiberalBattlePassPopupWindow.LiberalBattlePassCallback() {
@Override
public void onCallback(int code, String msg) {
- System.out.println("code = " + code + ", msg = " + msg);
+ ToastUtil.show(msg);
fragments.get(viewPager.getCurrentItem()).updateData();
}
},
@@ -185,8 +188,13 @@ public class BattlePassActivity extends AbsActivity {
public void onSuccess(BattlePassUserInfoBean data) {
BattlePassActivity.this.data = data;
sessionView.setText(data.getBattlePassName());
- timeView.setText(data.getStartTime() + " - " + data.getEndTime());
+ timeView.setText(String.format("%s %s - %s",
+ WordUtil.getNewString(R.string.battlepass_user_time),
+ data.getStartTime(),
+ data.getEndTime()
+ ));
levelView.setText("Lv." + data.getLevel());
+ expText.setText(data.getBattlePassExp() + "/" + data.getNextLevelExp());
levelProgressView.setMax(data.getNextLevelExp());
levelProgressView.setMin(data.getLastLevelExp());
levelProgressView.setProgress(data.getBattlePassExp());
@@ -200,8 +208,8 @@ public class BattlePassActivity extends AbsActivity {
enjoySpendMoney = String.valueOf(passType.getDiamond_value());
}
}
- if(!data.isBattlePassStatus() && !SpUtil.getInstance().getBooleanValue("is_battle_pass_status")){
- SpUtil.getInstance().setBooleanValue("is_battle_pass_status",true);//ActivityEndPopupWindow
+ if (!data.isBattlePassStatus() && !SpUtil.getInstance().getBooleanValue("is_battle_pass_status")) {
+ SpUtil.getInstance().setBooleanValue("is_battle_pass_status", true);//ActivityEndPopupWindow
new XPopup.Builder(BattlePassActivity.this)
.enableDrag(false)
.maxWidth(DeviceUtils.getScreenHeight(BattlePassActivity.this) - DpUtil.dp2px(34))
@@ -211,7 +219,7 @@ public class BattlePassActivity extends AbsActivity {
.show();
}
- if(data.isBattlePassStatus()){
+ if (data.isBattlePassStatus()) {
SpUtil.getInstance().removeValue("is_battle_pass_status");
}
@@ -226,7 +234,7 @@ public class BattlePassActivity extends AbsActivity {
@Subscribe(threadMode = ThreadMode.MAIN)
public void event(BattlePassTypeEvent event) {
- if(event.getType()==0){
+ if (event.getType() == 0) {
initData();
}
}
diff --git a/main/src/main/java/com/yunbao/main/adapter/BattlePassExchangeAdapter.java b/main/src/main/java/com/yunbao/main/adapter/BattlePassExchangeAdapter.java
index affaf5d7b..ebad54ee5 100644
--- a/main/src/main/java/com/yunbao/main/adapter/BattlePassExchangeAdapter.java
+++ b/main/src/main/java/com/yunbao/main/adapter/BattlePassExchangeAdapter.java
@@ -99,6 +99,7 @@ public class BattlePassExchangeAdapter extends RecyclerView.Adapter> mList = new ArrayList<>();
private int userLevel;
- private int userType;
+ private BattlePassUserInfoBean userType;
private OnItemClickListener onItemClickListener;
public void setList(List