Commit 1c5c38a2 by jeffrey

修改上报空指针错误

parent 44989920
......@@ -253,9 +253,9 @@ public class NewService extends AccessibilityService {
}
if (step == 7 && className.equals(WeChatWebView)){
step ++;
Log.d(TAG, "开始点击确认登录");
pressSure();
resetAll();
}
// switch (eventType) {
......@@ -597,7 +597,8 @@ public class NewService extends AccessibilityService {
WeChatStatus.finishAll();
clickDone = false;
upResult(code);
upResult(code,taskMsg.getUnique_id());
resetAll();
}
/**
......@@ -605,10 +606,10 @@ public class NewService extends AccessibilityService {
*
* @param code
*/
private void upResult(final int code) {
private void upResult(final int code, final String id) {
HttpClientApi.devicesScan(PushServiceFactory.getCloudPushService().getDeviceId(),
code,
taskMsg.getUnique_id(),
id,
new HttpSubscriber<String>() {
@Override
public void onCompleted() {
......@@ -617,7 +618,7 @@ public class NewService extends AccessibilityService {
@Override
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));
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment