Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Simple-Sms
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangchengbo
Simple-Sms
Commits
7755696d
Commit
7755696d
authored
Jul 31, 2025
by
zhangchengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:根据[顺丰小哥]App发送短信固定模版检索关键词进行脱敏操作
parent
8dfb15fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
MainActivity.kt
...c/main/kotlin/com/secspace/sms/activities/MainActivity.kt
+17
-1
No files found.
app/src/main/kotlin/com/secspace/sms/activities/MainActivity.kt
View file @
7755696d
...
...
@@ -540,11 +540,27 @@ class MainActivity : SimpleActivity() {
getOrCreateConversationsAdapter
().
notifyDataSetChanged
()
}
private
fun
containsDigit
(
str
:
String
):
Boolean
{
return
str
.
matches
(
".*\\d+.*"
.
toRegex
())
}
private
fun
handleConversationClick
(
any
:
Any
)
{
Intent
(
this
,
ThreadActivity
::
class
.
java
).
apply
{
val
conversation
=
any
as
Conversation
if
(
conversation
.
snippet
.
contains
(
"快递单号"
)
&&
conversation
.
snippet
.
contains
(
"SF"
)
&&
containsDigit
(
conversation
.
snippet
))
{
val
phoneNumber
=
conversation
.
title
if
(
phoneNumber
.
contains
(
"+86"
))
{
phoneNumber
.
replace
(
"+86"
,
""
)
}
PhoneUtils
.
phoneNumberFormat
(
phoneNumber
)
{
itNumber
->
putExtra
(
THREAD_TITLE
,
itNumber
)
}
}
else
{
putExtra
(
THREAD_TITLE
,
conversation
.
title
)
}
putExtra
(
THREAD_ID
,
conversation
.
threadId
)
putExtra
(
THREAD_TITLE
,
conversation
.
title
)
putExtra
(
WAS_PROTECTION_HANDLED
,
wasProtectionHandled
)
startActivity
(
this
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment