Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhengli
/
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
1c5c38a2
authored
Mar 28, 2018
by
jeffrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上报空指针错误
parent
44989920
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
+6
-5
app/src/main/java/com/xf/weixinclick/NewService.java
+6
-5
app/src/main/res/drawable-xhdpi/bg.png
+0
-0
app/src/main/res/drawable-xhdpi/bg_btn_wok_action.png
+0
-0
app/src/main/res/drawable-xhdpi/bg_work_action.png
+0
-0
app/src/main/res/drawable-xhdpi/ic_home_log.png
+0
-0
No files found.
app/src/main/java/com/xf/weixinclick/NewService.java
View file @
1c5c38a2
...
@@ -253,9 +253,9 @@ public class NewService extends AccessibilityService {
...
@@ -253,9 +253,9 @@ public class NewService extends AccessibilityService {
}
}
if
(
step
==
7
&&
className
.
equals
(
WeChatWebView
)){
if
(
step
==
7
&&
className
.
equals
(
WeChatWebView
)){
step
++;
Log
.
d
(
TAG
,
"开始点击确认登录"
);
Log
.
d
(
TAG
,
"开始点击确认登录"
);
pressSure
();
pressSure
();
resetAll
();
}
}
// switch (eventType) {
// switch (eventType) {
...
@@ -597,7 +597,8 @@ public class NewService extends AccessibilityService {
...
@@ -597,7 +597,8 @@ public class NewService extends AccessibilityService {
WeChatStatus
.
finishAll
();
WeChatStatus
.
finishAll
();
clickDone
=
false
;
clickDone
=
false
;
upResult
(
code
);
upResult
(
code
,
taskMsg
.
getUnique_id
());
resetAll
();
}
}
/**
/**
...
@@ -605,10 +606,10 @@ public class NewService extends AccessibilityService {
...
@@ -605,10 +606,10 @@ public class NewService extends AccessibilityService {
*
*
* @param code
* @param code
*/
*/
private
void
upResult
(
final
int
code
)
{
private
void
upResult
(
final
int
code
,
final
String
id
)
{
HttpClientApi
.
devicesScan
(
PushServiceFactory
.
getCloudPushService
().
getDeviceId
(),
HttpClientApi
.
devicesScan
(
PushServiceFactory
.
getCloudPushService
().
getDeviceId
(),
code
,
code
,
taskMsg
.
getUnique_id
()
,
id
,
new
HttpSubscriber
<
String
>()
{
new
HttpSubscriber
<
String
>()
{
@Override
@Override
public
void
onCompleted
()
{
public
void
onCompleted
()
{
...
@@ -617,7 +618,7 @@ public class NewService extends AccessibilityService {
...
@@ -617,7 +618,7 @@ public class NewService extends AccessibilityService {
@Override
@Override
public
void
onNext
(
String
responseBase
)
{
public
void
onNext
(
String
responseBase
)
{
showToast
(
getApplicationContext
(),
String
.
format
(
"code %d message_id %s 上报结果 %s"
,
code
,
taskMsg
.
getUnique_id
()
,
responseBase
));
showToast
(
getApplicationContext
(),
String
.
format
(
"code %d message_id %s 上报结果 %s"
,
code
,
id
,
responseBase
));
}
}
});
});
}
}
...
...
app/src/main/res/drawable-xhdpi/bg.png
0 → 100644
View file @
1c5c38a2
704 KB
app/src/main/res/drawable-xhdpi/bg_btn_wok_action.png
0 → 100644
View file @
1c5c38a2
4.38 KB
app/src/main/res/drawable-xhdpi/bg_work_action.png
0 → 100644
View file @
1c5c38a2
6.02 KB
app/src/main/res/drawable-xhdpi/ic_home_log.png
0 → 100644
View file @
1c5c38a2
5.8 KB
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