Skip to content

Commit

Permalink
Fix group lucky money not works bug
Browse files Browse the repository at this point in the history
veryyoung committed Dec 29, 2017
1 parent 33a6b54 commit 932d168
Showing 3 changed files with 7 additions and 3 deletions.
Binary file modified app/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -23,8 +23,8 @@ android {
applicationId "me.veryyoung.wechat.luckymoney"
minSdkVersion 15
targetSdkVersion 23
versionCode 30
versionName "1.3.3"
versionCode 31
versionName "1.3.4"
}

buildTypes {
6 changes: 5 additions & 1 deletion app/src/main/java/me/veryyoung/wechat/luckymoney/Main.java
Original file line number Diff line number Diff line change
@@ -183,8 +183,12 @@ private void handleLuckyMoney(ContentValues contentValues, LoadPackageParam lppa
return;
}

String content = contentValues.getAsString("content");
if (!content.startsWith("<msg")) {
content = content.substring(content.indexOf("<msg"));
}

JSONObject wcpayinfo = new XmlToJson.Builder(contentValues.getAsString("content")).build()
JSONObject wcpayinfo = new XmlToJson.Builder(content).build()
.getJSONObject("msg").getJSONObject("appmsg").getJSONObject("wcpayinfo");
String senderTitle = wcpayinfo.getString("sendertitle");
String notContainsWords = PreferencesUtils.notContains();

0 comments on commit 932d168

Please sign in to comment.