pull/21/head
fengyuecanzhu 3 years ago
parent 1d4d03e590
commit 610557bada
  1. 2
      app/src/main/assets/updatelog.fy
  2. 2
      app/src/main/java/xyz/fycz/myreader/ui/activity/DonateActivity.java
  3. 8
      app/src/main/java/xyz/fycz/myreader/ui/activity/UserInfoActivity.kt
  4. 2
      app/src/main/res/values/strings.xml

@ -1,5 +1,5 @@
2022.03.04 2022.03.04
风月读书v2.4.0 风月读书v2.4.0-beta
更新内容: 更新内容:
1、新增用户中心 1、新增用户中心
2、修复v2.3.9版本搜索界面书源分组显示错位的问题 2、修复v2.3.9版本搜索界面书源分组显示错位的问题

@ -48,7 +48,7 @@ public class DonateActivity extends BaseActivity<ActivityDonateBinding> {
@Override @Override
protected void initWidget() { protected void initWidget() {
AdUtils.checkHasAd().subscribe(new MySingleObserver<Boolean>() { AdUtils.checkHasAd(true, false).subscribe(new MySingleObserver<Boolean>() {
@Override @Override
public void onSuccess(@NonNull Boolean aBoolean) { public void onSuccess(@NonNull Boolean aBoolean) {
if (aBoolean) { if (aBoolean) {

@ -155,7 +155,7 @@ class UserInfoActivity : BaseActivity<ActivityUserInfoBinding>() {
override fun onSuccess(t: Result) { override fun onSuccess(t: Result) {
if (t.code < 200) { if (t.code < 200) {
user?.noAdId = UserService.getUUID() user?.noAdId = UserService.getUUID()
ToastUtils.showSuccess("设备绑定成功") ToastUtils.showSuccess(t.result.toString())
binding.tvNoAdDevice.text = "已绑定此设备" binding.tvNoAdDevice.text = "已绑定此设备"
} else { } else {
ToastUtils.showError(t.result.toString()) ToastUtils.showError(t.result.toString())
@ -174,7 +174,7 @@ class UserInfoActivity : BaseActivity<ActivityUserInfoBinding>() {
binding.rlCammyEnter.onClick { binding.rlCammyEnter.onClick {
var cammy = "" var cammy = ""
MyAlertDialog.createInputDia(this, getString(R.string.cammy_enter), MyAlertDialog.createInputDia(this, getString(R.string.cammy_enter),
"请输入卡密", "", true, 25, { "请输入兑换码", "", true, 25, {
cammy = it cammy = it
}, { _, _ -> }, { _, _ ->
dialog.show() dialog.show()
@ -187,7 +187,7 @@ class UserInfoActivity : BaseActivity<ActivityUserInfoBinding>() {
override fun onSuccess(t: Result) { override fun onSuccess(t: Result) {
if (t.code < 200) { if (t.code < 200) {
ToastUtils.showSuccess("卡密绑定成功,免广告服务重启后生效") ToastUtils.showSuccess(t.result.toString())
dialog.dismiss() dialog.dismiss()
initData() initData()
} else { } else {
@ -197,7 +197,7 @@ class UserInfoActivity : BaseActivity<ActivityUserInfoBinding>() {
} }
override fun onError(e: Throwable) { override fun onError(e: Throwable) {
ToastUtils.showError("卡密绑定成功\n" + e.localizedMessage) ToastUtils.showError("兑换码使用失败\n" + e.localizedMessage)
dialog.dismiss() dialog.dismiss()
} }
}) })

@ -551,7 +551,7 @@
<string name="no_ad_device">免广告设备绑定</string> <string name="no_ad_device">免广告设备绑定</string>
<string name="basic_service">基础服务</string> <string name="basic_service">基础服务</string>
<string name="no_ad_service">免广告服务</string> <string name="no_ad_service">免广告服务</string>
<string name="cammy_enter">卡密输入</string> <string name="cammy_enter">兑换码输入</string>
<string name="logout">退出登录</string> <string name="logout">退出登录</string>

Loading…
Cancel
Save