修改问题
This commit is contained in:
parent
f94b3f27e3
commit
f04a2865af
@ -29,7 +29,7 @@ public class GuardGetGuardUserInfoModel extends BaseModel {
|
|||||||
@SerializedName("guard_type")
|
@SerializedName("guard_type")
|
||||||
private int guardType;
|
private int guardType;
|
||||||
@SerializedName("exp")
|
@SerializedName("exp")
|
||||||
private int exp;
|
private String exp;
|
||||||
@SerializedName("level")
|
@SerializedName("level")
|
||||||
private int level;
|
private int level;
|
||||||
@SerializedName("endtime")
|
@SerializedName("endtime")
|
||||||
@ -84,11 +84,11 @@ public class GuardGetGuardUserInfoModel extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getExp() {
|
public String getExp() {
|
||||||
return exp;
|
return exp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GuardGetGuardUserInfoModel setExp(int exp) {
|
public GuardGetGuardUserInfoModel setExp(String exp) {
|
||||||
this.exp = exp;
|
this.exp = exp;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -27,13 +27,13 @@ public class GuardUserInfoModel extends BaseModel {
|
|||||||
@SerializedName("live_avatar")
|
@SerializedName("live_avatar")
|
||||||
private String liveAvatar;
|
private String liveAvatar;
|
||||||
@SerializedName("guard_type")
|
@SerializedName("guard_type")
|
||||||
private int guardType;
|
private String guardType;
|
||||||
@SerializedName("exp")
|
@SerializedName("exp")
|
||||||
private int exp;
|
private String exp;
|
||||||
@SerializedName("level")
|
@SerializedName("level")
|
||||||
private int level;
|
private String level;
|
||||||
@SerializedName("endtime")
|
@SerializedName("endtime")
|
||||||
private int endtime;
|
private String endtime;
|
||||||
@SerializedName("user_language")
|
@SerializedName("user_language")
|
||||||
private String userLanguage;
|
private String userLanguage;
|
||||||
@SerializedName("live_language")
|
@SerializedName("live_language")
|
||||||
@ -75,38 +75,38 @@ public class GuardUserInfoModel extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getGuardType() {
|
public String getGuardType() {
|
||||||
return guardType;
|
return guardType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GuardUserInfoModel setGuardType(int guardType) {
|
public GuardUserInfoModel setGuardType(String guardType) {
|
||||||
this.guardType = guardType;
|
this.guardType = guardType;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getExp() {
|
public String getExp() {
|
||||||
return exp;
|
return exp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GuardUserInfoModel setExp(int exp) {
|
public GuardUserInfoModel setExp(String exp) {
|
||||||
this.exp = exp;
|
this.exp = exp;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getLevel() {
|
public String getLevel() {
|
||||||
return level;
|
return level;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GuardUserInfoModel setLevel(int level) {
|
public GuardUserInfoModel setLevel(String level) {
|
||||||
this.level = level;
|
this.level = level;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getEndtime() {
|
public String getEndtime() {
|
||||||
return endtime;
|
return endtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GuardUserInfoModel setEndtime(int endtime) {
|
public GuardUserInfoModel setEndtime(String endtime) {
|
||||||
this.endtime = endtime;
|
this.endtime = endtime;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.yunbao.common.dialog;
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.widget.LinearLayout;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
@ -9,8 +10,14 @@ import com.yunbao.common.R;
|
|||||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
|
|
||||||
public class DragonRulePopup extends CenterPopupView {
|
public class DragonRulePopup extends CenterPopupView {
|
||||||
public DragonRulePopup(@NonNull Context context) {
|
LinearLayout list_no;
|
||||||
|
LinearLayout list;
|
||||||
|
|
||||||
|
boolean isList;
|
||||||
|
|
||||||
|
public DragonRulePopup(@NonNull Context context, boolean isList) {
|
||||||
super(context);
|
super(context);
|
||||||
|
this.isList = isList;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 返回自定义弹窗的布局
|
// 返回自定义弹窗的布局
|
||||||
@ -23,6 +30,15 @@ public class DragonRulePopup extends CenterPopupView {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate() {
|
protected void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
list_no = findViewById(R.id.list_no);
|
||||||
|
list = findViewById(R.id.list);
|
||||||
|
if (!isList){
|
||||||
|
list_no.setVisibility(VISIBLE);
|
||||||
|
list.setVisibility(GONE);
|
||||||
|
}else {
|
||||||
|
list_no.setVisibility(GONE);
|
||||||
|
list.setVisibility(VISIBLE);
|
||||||
|
}
|
||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.dragon_close), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.dragon_close), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
@ -68,15 +68,15 @@ public class GuardUpgradePopup extends CenterPopupView {
|
|||||||
leave_hint.setText(hintStringBuffer.toString());
|
leave_hint.setText(hintStringBuffer.toString());
|
||||||
if (mUpgradesModel.getRewards().size() > 0) {
|
if (mUpgradesModel.getRewards().size() > 0) {
|
||||||
if (mUpgradesModel.getRewards().size() == 1) {
|
if (mUpgradesModel.getRewards().size() == 1) {
|
||||||
rewards_line1.setVisibility(GONE);
|
rewards_line1.setVisibility(INVISIBLE);
|
||||||
rewards_line2.setVisibility(VISIBLE);
|
rewards_line2.setVisibility(VISIBLE);
|
||||||
rewards_line3.setVisibility(GONE);
|
rewards_line3.setVisibility(INVISIBLE);
|
||||||
RewardsModel rewardsModel = mUpgradesModel.getRewards().get(0);
|
RewardsModel rewardsModel = mUpgradesModel.getRewards().get(0);
|
||||||
ImgLoader.display(getContext(), rewardsModel.getImagePath(), rewards_img2);
|
ImgLoader.display(getContext(), rewardsModel.getImagePath(), rewards_img2);
|
||||||
rewards_text2.setText(rewardsModel.getRewardName());
|
rewards_text2.setText(rewardsModel.getRewardName());
|
||||||
} else if (mUpgradesModel.getRewards().size() == 2) {
|
} else if (mUpgradesModel.getRewards().size() == 2) {
|
||||||
rewards_line1.setVisibility(VISIBLE);
|
rewards_line1.setVisibility(VISIBLE);
|
||||||
rewards_line2.setVisibility(GONE);
|
rewards_line2.setVisibility(INVISIBLE);
|
||||||
rewards_line3.setVisibility(VISIBLE);
|
rewards_line3.setVisibility(VISIBLE);
|
||||||
RewardsModel rewardsModel1 = mUpgradesModel.getRewards().get(0);
|
RewardsModel rewardsModel1 = mUpgradesModel.getRewards().get(0);
|
||||||
RewardsModel rewardsModel3 = mUpgradesModel.getRewards().get(1);
|
RewardsModel rewardsModel3 = mUpgradesModel.getRewards().get(1);
|
||||||
@ -104,22 +104,22 @@ public class GuardUpgradePopup extends CenterPopupView {
|
|||||||
ImgLoader.display(getContext(), rewardsModel3.getImagePath(), rewards_img3);
|
ImgLoader.display(getContext(), rewardsModel3.getImagePath(), rewards_img3);
|
||||||
rewards_text3.setText(rewardsModel3.getRewardName());
|
rewards_text3.setText(rewardsModel3.getRewardName());
|
||||||
} else {
|
} else {
|
||||||
rewards_line1.setVisibility(GONE);
|
rewards_line1.setVisibility(INVISIBLE);
|
||||||
rewards_line2.setVisibility(GONE);
|
rewards_line2.setVisibility(INVISIBLE);
|
||||||
rewards_line3.setVisibility(GONE);
|
rewards_line3.setVisibility(INVISIBLE);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
rewards_line1.setVisibility(GONE);
|
rewards_line1.setVisibility(INVISIBLE);
|
||||||
rewards_line2.setVisibility(GONE);
|
rewards_line2.setVisibility(INVISIBLE);
|
||||||
rewards_line3.setVisibility(GONE);
|
rewards_line3.setVisibility(INVISIBLE);
|
||||||
}
|
}
|
||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.confirm), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.confirm), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
LiveNetManager.get(getContext())
|
LiveNetManager.get(getContext())
|
||||||
.guardGetRewards(mLiveUid,new HttpCallback<CheckUpgradesModel>() {
|
.guardGetRewards(mUpgradesModel.getLevel(), mLiveUid, new HttpCallback<Object>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(CheckUpgradesModel data) {
|
public void onSuccess(Object data) {
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1190,5 +1190,5 @@ public interface PDLiveApi {
|
|||||||
@GET("/api/public/?service=Guard.checkUpgrades")
|
@GET("/api/public/?service=Guard.checkUpgrades")
|
||||||
Observable<ResponseModel<CheckUpgradesModel>> checkUpgrades(@Query("liveuid") String liveUid);
|
Observable<ResponseModel<CheckUpgradesModel>> checkUpgrades(@Query("liveuid") String liveUid);
|
||||||
@GET("/api/public/?service=Guard.getRewards")
|
@GET("/api/public/?service=Guard.getRewards")
|
||||||
Observable<ResponseModel<CheckUpgradesModel>> guardGetRewards(@Query("type") String type,@Query("liveuid") String liveUid);
|
Observable<ResponseModel<Object>> guardGetRewards(@Query("guard_level") String guardLevel,@Query("liveuid") String liveUid);
|
||||||
}
|
}
|
||||||
|
@ -3136,14 +3136,14 @@ public class LiveNetManager {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void guardGetRewards(String liveUid, HttpCallback<CheckUpgradesModel> callback) {
|
public void guardGetRewards(String guardLevel,String liveUid, HttpCallback<Object> callback) {
|
||||||
API.get().pdLiveApi(mContext)
|
API.get().pdLiveApi(mContext)
|
||||||
.guardGetRewards("2", liveUid)
|
.guardGetRewards(guardLevel, liveUid)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(new Consumer<ResponseModel<CheckUpgradesModel>>() {
|
.subscribe(new Consumer<ResponseModel<Object>>() {
|
||||||
@Override
|
@Override
|
||||||
public void accept(ResponseModel<CheckUpgradesModel> listResponseModel) throws Exception {
|
public void accept(ResponseModel<Object> listResponseModel) throws Exception {
|
||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
callback.onSuccess(listResponseModel.getData().getInfo());
|
callback.onSuccess(listResponseModel.getData().getInfo());
|
||||||
}
|
}
|
||||||
|
@ -39,9 +39,15 @@
|
|||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/list_no"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -78,12 +84,52 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="13dp"
|
android:layout_marginStart="13dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
android:text="@string/dragon_rule4"
|
android:text="@string/dragon_rule4"
|
||||||
android:textColor="#FFE0BF"
|
android:textColor="#FFE0BF"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/list"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="13dp"
|
||||||
|
android:layout_marginTop="14dp"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:text="@string/dragon_rule5"
|
||||||
|
android:textColor="#FFE0BF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="13dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:text="@string/dragon_rule6"
|
||||||
|
android:textColor="#FFE0BF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="13dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:text="@string/dragon_rule7"
|
||||||
|
android:textColor="#FFE0BF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</androidx.core.widget.NestedScrollView>
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1479,6 +1479,7 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="dragon_rule1">"1. Dragon's Wealth is a benefit that you provide to the audience of the live room after activating the 【God Guardian】. You can choose to customize the number of golden beans and summon Dragon God to divide the profits among the fans of the live broadcast room (the number of golden beans is not less than 1000), or you can choose not to activate the activity; "</string>
|
<string name="dragon_rule1">"1. Dragon's Wealth is a benefit that you provide to the audience of the live room after activating the 【God Guardian】. You can choose to customize the number of golden beans and summon Dragon God to divide the profits among the fans of the live broadcast room (the number of golden beans is not less than 1000), or you can choose not to activate the activity; "</string>
|
||||||
<string name="dragon_rule2">"2. The consumption of gold beans this time will be included in the guardian contribution value and experience value growth. For every 10 gold beans provided, 1 contribution value will be obtained, which can be used to increase the guardian level; "</string>
|
<string name="dragon_rule2">"2. The consumption of gold beans this time will be included in the guardian contribution value and experience value growth. For every 10 gold beans provided, 1 contribution value will be obtained, which can be used to increase the guardian level; "</string>
|
||||||
<string name="dragon_rule3">"3. Users who follow the anchor and participate in activities will receive the benefits you provide after a five minute countdown; "</string>
|
<string name="dragon_rule3">"3. Users who follow the anchor and participate in activities will receive the benefits you provide after a five minute countdown; "</string>
|
||||||
|
|
||||||
<string name="dragon_rule4">4. The final interpretation of this activity belongs to PDLIVE.</string>
|
<string name="dragon_rule4">4. The final interpretation of this activity belongs to PDLIVE.</string>
|
||||||
<string name="dragon_immediate_participation">Participate</string>
|
<string name="dragon_immediate_participation">Participate</string>
|
||||||
<string name="continuative_guardian_privilege">Renew now to extend guardian privileges\n</string>
|
<string name="continuative_guardian_privilege">Renew now to extend guardian privileges\n</string>
|
||||||
@ -1496,4 +1497,7 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="send_benefits">Send benefits</string>
|
<string name="send_benefits">Send benefits</string>
|
||||||
<string name="according_to_the_rules">(The original protection level will be retained, and the remaining validity period will be added to the new protection validity period according to the rules)</string>
|
<string name="according_to_the_rules">(The original protection level will be retained, and the remaining validity period will be added to the new protection validity period according to the rules)</string>
|
||||||
<string name="current_guard_expires">We are currently unable to activate this guard. Please try again after the current guard expires</string>
|
<string name="current_guard_expires">We are currently unable to activate this guard. Please try again after the current guard expires</string>
|
||||||
|
<string name="dragon_rule5">1.Dragon\'s Wealth is a free golden bean benefit provided to live stream viewers by users who have activated the 【God Guardian】 feature;</string>
|
||||||
|
<string name="dragon_rule6">2.Users who follow the anchor and participate in the activity will divide the gold beans of the activity after the countdown of five minutes ends;</string>
|
||||||
|
<string name="dragon_rule7">3.The final interpretation of this activity belongs to PDLIVE.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1495,4 +1495,7 @@
|
|||||||
<string name="send_benefits">發放福利</string>
|
<string name="send_benefits">發放福利</string>
|
||||||
<string name="according_to_the_rules">(原有的守護等級將會保留,剩餘有效期將按規則補充至新守護有效期中)</string>
|
<string name="according_to_the_rules">(原有的守護等級將會保留,剩餘有效期將按規則補充至新守護有效期中)</string>
|
||||||
<string name="current_guard_expires">暫時無法開通該守護,請當前守護到期後嘗試</string>
|
<string name="current_guard_expires">暫時無法開通該守護,請當前守護到期後嘗試</string>
|
||||||
|
<string name="dragon_rule5">1.神龍送財是開通【神之守護】的用戶給予直播間觀眾的免費金豆福利;</string>
|
||||||
|
<string name="dragon_rule6">2.用戶關注主播並參與活動,將在倒計時五分鐘結束後瓜分活動金豆;</string>
|
||||||
|
<string name="dragon_rule7">3.此活動的最終解釋權歸PDLIVE所有。</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1494,5 +1494,7 @@
|
|||||||
<string name="send_benefits">發放福利</string>
|
<string name="send_benefits">發放福利</string>
|
||||||
<string name="according_to_the_rules">(原有的守護等級將會保留,剩餘有效期將按規則補充至新守護有效期中)</string>
|
<string name="according_to_the_rules">(原有的守護等級將會保留,剩餘有效期將按規則補充至新守護有效期中)</string>
|
||||||
<string name="current_guard_expires">暫時無法開通該守護,請當前守護到期後嘗試</string>
|
<string name="current_guard_expires">暫時無法開通該守護,請當前守護到期後嘗試</string>
|
||||||
|
<string name="dragon_rule5">1.神龍送財是開通【神之守護】的用戶給予直播間觀眾的免費金豆福利;</string>
|
||||||
|
<string name="dragon_rule6">2.用戶關注主播並參與活動,將在倒計時五分鐘結束後瓜分活動金豆;</string>
|
||||||
|
<string name="dragon_rule7">3.此活動的最終解釋權歸PDLIVE所有。</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1491,5 +1491,8 @@
|
|||||||
<string name="send_benefits">發放福利</string>
|
<string name="send_benefits">發放福利</string>
|
||||||
<string name="according_to_the_rules">(原有的守護等級將會保留,剩餘有效期將按規則補充至新守護有效期中)</string>
|
<string name="according_to_the_rules">(原有的守護等級將會保留,剩餘有效期將按規則補充至新守護有效期中)</string>
|
||||||
<string name="current_guard_expires">暫時無法開通該守護,請當前守護到期後嘗試</string>
|
<string name="current_guard_expires">暫時無法開通該守護,請當前守護到期後嘗試</string>
|
||||||
|
<string name="dragon_rule5">1.神龍送財是開通【神之守護】的用戶給予直播間觀眾的免費金豆福利;</string>
|
||||||
|
<string name="dragon_rule6">2.用戶關注主播並參與活動,將在倒計時五分鐘結束後瓜分活動金豆;</string>
|
||||||
|
<string name="dragon_rule7">3.此活動的最終解釋權歸PDLIVE所有。</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1500,5 +1500,7 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="send_benefits">Send benefits</string>
|
<string name="send_benefits">Send benefits</string>
|
||||||
<string name="according_to_the_rules">(The original protection level will be retained, and the remaining validity period will be added to the new protection validity period according to the rules)</string>
|
<string name="according_to_the_rules">(The original protection level will be retained, and the remaining validity period will be added to the new protection validity period according to the rules)</string>
|
||||||
<string name="current_guard_expires">We are currently unable to activate this guard. Please try again after the current guard expires</string>
|
<string name="current_guard_expires">We are currently unable to activate this guard. Please try again after the current guard expires</string>
|
||||||
|
<string name="dragon_rule5">1.Dragon\'s Wealth is a free golden bean benefit provided to live stream viewers by users who have activated the 【God Guardian】 feature;</string>
|
||||||
|
<string name="dragon_rule6">2.Users who follow the anchor and participate in the activity will divide the gold beans of the activity after the countdown of five minutes ends;</string>
|
||||||
|
<string name="dragon_rule7">3.The final interpretation of this activity belongs to PDLIVE.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -43,7 +43,7 @@ public class GuardUserModel extends BaseModel {
|
|||||||
@SerializedName("guard_type")
|
@SerializedName("guard_type")
|
||||||
private int guardType;
|
private int guardType;
|
||||||
@SerializedName("guard_exp")
|
@SerializedName("guard_exp")
|
||||||
private int guardExp;
|
private String guardExp;
|
||||||
@SerializedName("guard_level")
|
@SerializedName("guard_level")
|
||||||
private int guardLevel;
|
private int guardLevel;
|
||||||
@SerializedName("guard_name")
|
@SerializedName("guard_name")
|
||||||
@ -141,11 +141,11 @@ public class GuardUserModel extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getGuardExp() {
|
public String getGuardExp() {
|
||||||
return guardExp;
|
return guardExp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GuardUserModel setGuardExp(int guardExp) {
|
public GuardUserModel setGuardExp(String guardExp) {
|
||||||
this.guardExp = guardExp;
|
this.guardExp = guardExp;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ public class DragonSendMoneyListPopup extends AbsDialogPopupWindow {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
new XPopup.Builder(getContext())
|
new XPopup.Builder(getContext())
|
||||||
.asCustom(new DragonRulePopup(getContext()))
|
.asCustom(new DragonRulePopup(getContext(),true))
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -56,7 +56,7 @@ public class DragonSendsMoneyPopup extends CenterPopupView {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
new XPopup.Builder(getContext())
|
new XPopup.Builder(getContext())
|
||||||
.asCustom(new DragonRulePopup(getContext()))
|
.asCustom(new DragonRulePopup(getContext(),false))
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -203,7 +203,9 @@ public class LiveBuyGuardDialog extends AbsDialogPopupWindow {
|
|||||||
});
|
});
|
||||||
buyGuardBanner.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
|
buyGuardBanner.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onPageScrolled(int i, float v, int i1) {
|
public void onPageScrolled(int position, float v, int i1) {
|
||||||
|
BuyGuardBannerModel guardBannerModel = buyGuardBannerModels.get(position);
|
||||||
|
Log.e("LiveBuyGuardDialog", "onPageScrolled name = " + guardBannerModel.getName() + " position=" + position);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -211,7 +213,7 @@ public class LiveBuyGuardDialog extends AbsDialogPopupWindow {
|
|||||||
BuyGuardBannerModel guardBannerModel = buyGuardBannerModels.get(position);
|
BuyGuardBannerModel guardBannerModel = buyGuardBannerModels.get(position);
|
||||||
dataTipModel = guardDataTipModels.get(position);
|
dataTipModel = guardDataTipModels.get(position);
|
||||||
price = dataTipModel.getPrice();
|
price = dataTipModel.getPrice();
|
||||||
Log.e("LiveBuyGuardDialog", "name = " + guardBannerModel.getName() + " position=" + position);
|
Log.e("LiveBuyGuardDialog", "onPageSelected BuyGuardBannerModel name = " + guardBannerModel.getName() + " position=" + position);
|
||||||
if (position == 0) {
|
if (position == 0) {
|
||||||
MobclickAgent.onEvent(mContext, "star_guardian_people", "星之守护页面观看次数及人数");
|
MobclickAgent.onEvent(mContext, "star_guardian_people", "星之守护页面观看次数及人数");
|
||||||
bottomPanel.setBackgroundResource(R.drawable.bg_star_guard_bottom_panel);
|
bottomPanel.setBackgroundResource(R.drawable.bg_star_guard_bottom_panel);
|
||||||
@ -266,8 +268,9 @@ public class LiveBuyGuardDialog extends AbsDialogPopupWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPageScrollStateChanged(int i) {
|
public void onPageScrollStateChanged(int position) {
|
||||||
|
BuyGuardBannerModel guardBannerModel = buyGuardBannerModels.get(position);
|
||||||
|
Log.e("LiveBuyGuardDialog", "onPageScrollStateChanged name = " + guardBannerModel.getName() + " position=" + position);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -269,6 +269,7 @@ public class LiveGuardDialog extends AbsDialogPopupWindow {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(guardianTask, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(guardianTask, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_guard_task_num", "守护任务页面访问次数和人数");
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
htmlUrl.append(CommonAppConfig.HOST)
|
htmlUrl.append(CommonAppConfig.HOST)
|
||||||
@ -293,6 +294,7 @@ public class LiveGuardDialog extends AbsDialogPopupWindow {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(myGraudGrade, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(myGraudGrade, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_guard_level_num", "我的等级页面访问次数和人数");
|
||||||
dismiss();
|
dismiss();
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user