Skip to content

Commit

Permalink
更新到 1.4.25_60
Browse files Browse the repository at this point in the history
- 适配微信8037
  • Loading branch information
zhudongya123 committed Jun 4, 2023
1 parent e0eee44 commit ebe4f27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Wechat_chatroom_helper_android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
applicationId "com.zdy.project.wechat_chatroom_helper"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.sdkVersion
versionCode 59
versionName "1.4.24"
versionCode 60
versionName "1.4.25"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,32 +48,10 @@ object MessageHandler {
private val FilterListForOriginAllConversation =
arrayOf("select unReadCount, status, isSend, conversationTime, username, content, msgType,",
"parentRef is null",
"or parentRef = ''",
//"or parentRef = ''",
"and rconversation.username != 'qmessage'",
"order by flag desc")


@Deprecated("微信老版本废弃")
private val FilterListForOriginAllUnread1 =
arrayOf("select sum(unReadCount) from rconversation, rcontact",
"(rconversation.parentRef is null or parentRef = '' )",
"1 != 1 or rconversation.username like",
"rconversation.username like '%@chatroom'",
"( type & 512 ) == 0",
"rcontact.username != 'officialaccounts'")

@Deprecated("微信老版本废弃, verifyFlag为0时一定不是订阅号和服务号")
private const val FilterListForOriginAllUnread2 = "rcontact.verifyFlag == 0"

@Deprecated("微信8.0.2废弃")
private val FilterListForOriginAllUnread3 = arrayOf(
"select unReadCount from rconversation",
"AND (parentRef is null or parentRef = '' ) ",
"and ( 1 != 1 or rconversation.username like '%@im.chatroom' ",
"or rconversation.username like '%@chatroom' ",
"or rconversation.username like '%@openim' ",
"or rconversation.username not like '%@%' ) ")

//微信原始的查询消息未读数的语句,通过分段来筛选出相关逻辑
private val FilterListForOriginAllUnread4 = arrayOf("SELECT rconversation.username, rconversation.unReadCount, rconversation.conversationTime",
"from rconversation inner join rcontact", "" +
Expand Down Expand Up @@ -152,7 +130,7 @@ object MessageHandler {
val thisObject = param.thisObject
val factory = param.args[0]
val sql = param.args[1] as String
val selectionArgs = param.args[2] as Array<String>?
val selectionArgs = param.args[2] as Array<*>?
val editTable = param.args[3] as String?
val cancellation = param.args[4]

Expand Down

0 comments on commit ebe4f27

Please sign in to comment.