Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李雅为
/
wechat_click
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8193d56a
authored
Mar 28, 2018
by
jeffrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url和id没改掉 这次对了
parent
972d8d8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/src/main/java/com/xf/weixinclick/NewService.java
+7
-7
No files found.
app/src/main/java/com/xf/weixinclick/NewService.java
View file @
8193d56a
...
...
@@ -62,8 +62,8 @@ public class NewService extends AccessibilityService {
int
isFalse
=
0
;
private
String
Url
=
"https://weapp-dev.wangjia.com/qr.jpg?dd=1"
;
private
String
message_id
=
"123"
;
//
private String Url = "https://weapp-dev.wangjia.com/qr.jpg?dd=1";
//
private String message_id = "123";
private
DelayBean
delayBean
;
private
ReceiverMsg
taskMsg
;
/**
...
...
@@ -608,7 +608,7 @@ public class NewService extends AccessibilityService {
private
void
upResult
(
final
int
code
)
{
HttpClientApi
.
devicesScan
(
PushServiceFactory
.
getCloudPushService
().
getDeviceId
(),
code
,
message_id
,
taskMsg
.
getUnique_id
()
,
new
HttpSubscriber
<
String
>()
{
@Override
public
void
onCompleted
()
{
...
...
@@ -617,7 +617,7 @@ public class NewService extends AccessibilityService {
@Override
public
void
onNext
(
String
responseBase
)
{
showToast
(
getApplicationContext
(),
String
.
format
(
"code %d message_id %s 上报结果 %s"
,
code
,
message_id
,
responseBase
));
showToast
(
getApplicationContext
(),
String
.
format
(
"code %d message_id %s 上报结果 %s"
,
code
,
taskMsg
.
getUnique_id
()
,
responseBase
));
}
});
}
...
...
@@ -638,7 +638,7 @@ public class NewService extends AccessibilityService {
return
;
}
List
<
AccessibilityNodeInfo
>
ac2
=
rootNode
.
findAccessibilityNodeInfosByText
(
Url
);
List
<
AccessibilityNodeInfo
>
ac2
=
rootNode
.
findAccessibilityNodeInfosByText
(
taskMsg
.
getQr_addr
()
);
// List<AccessibilityNodeInfo> ac = rootNode.findAccessibilityNodeInfosByViewId("@id/ji");
List
<
AccessibilityNodeInfo
>
ac
=
rootNode
.
findAccessibilityNodeInfosByViewId
(
"com.tencent.mm:id/ji"
);
AccessibilityNodeInfo
n
=
null
;
...
...
@@ -659,7 +659,7 @@ public class NewService extends AccessibilityService {
execShellCmd
(
"input tap "
+
x
+
" "
+
y
);
}
else
{
Log
.
d
(
"fei "
,
"找不到消息 消息url"
+
Url
);
Log
.
d
(
"fei "
,
"找不到消息 消息url"
+
taskMsg
.
getQr_addr
()
);
execShellCmd
(
"input tap "
+
dip2px
(
80
)
+
" "
+
dip2px
(
540
));
}
...
...
@@ -733,7 +733,7 @@ public class NewService extends AccessibilityService {
private
boolean
fill
()
{
AccessibilityNodeInfo
rootNode
=
getRootInActiveWindow
();
if
(
rootNode
!=
null
)
{
return
findEditText
(
rootNode
,
Url
);
return
findEditText
(
rootNode
,
taskMsg
.
getQr_addr
()
);
}
return
false
;
}
...
...
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