Commit 8193d56a by jeffrey

url和id没改掉 这次对了

parent 972d8d8b
...@@ -62,8 +62,8 @@ public class NewService extends AccessibilityService { ...@@ -62,8 +62,8 @@ public class NewService extends AccessibilityService {
int isFalse = 0; int isFalse = 0;
private String Url = "https://weapp-dev.wangjia.com/qr.jpg?dd=1"; // private String Url = "https://weapp-dev.wangjia.com/qr.jpg?dd=1";
private String message_id = "123"; // private String message_id = "123";
private DelayBean delayBean; private DelayBean delayBean;
private ReceiverMsg taskMsg; private ReceiverMsg taskMsg;
/** /**
...@@ -608,7 +608,7 @@ public class NewService extends AccessibilityService { ...@@ -608,7 +608,7 @@ public class NewService extends AccessibilityService {
private void upResult(final int code) { private void upResult(final int code) {
HttpClientApi.devicesScan(PushServiceFactory.getCloudPushService().getDeviceId(), HttpClientApi.devicesScan(PushServiceFactory.getCloudPushService().getDeviceId(),
code, code,
message_id, taskMsg.getUnique_id(),
new HttpSubscriber<String>() { new HttpSubscriber<String>() {
@Override @Override
public void onCompleted() { public void onCompleted() {
...@@ -617,7 +617,7 @@ public class NewService extends AccessibilityService { ...@@ -617,7 +617,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,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 { ...@@ -638,7 +638,7 @@ public class NewService extends AccessibilityService {
return; 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("@id/ji");
List<AccessibilityNodeInfo> ac = rootNode.findAccessibilityNodeInfosByViewId("com.tencent.mm:id/ji"); List<AccessibilityNodeInfo> ac = rootNode.findAccessibilityNodeInfosByViewId("com.tencent.mm:id/ji");
AccessibilityNodeInfo n = null; AccessibilityNodeInfo n = null;
...@@ -659,7 +659,7 @@ public class NewService extends AccessibilityService { ...@@ -659,7 +659,7 @@ public class NewService extends AccessibilityService {
execShellCmd("input tap " + x + " " + y); execShellCmd("input tap " + x + " " + y);
} else { } else {
Log.d("fei ", "找不到消息 消息url" + Url); Log.d("fei ", "找不到消息 消息url" + taskMsg.getQr_addr());
execShellCmd("input tap " + dip2px(80) + " " + dip2px(540)); execShellCmd("input tap " + dip2px(80) + " " + dip2px(540));
} }
...@@ -733,7 +733,7 @@ public class NewService extends AccessibilityService { ...@@ -733,7 +733,7 @@ public class NewService extends AccessibilityService {
private boolean fill() { private boolean fill() {
AccessibilityNodeInfo rootNode = getRootInActiveWindow(); AccessibilityNodeInfo rootNode = getRootInActiveWindow();
if (rootNode != null) { if (rootNode != null) {
return findEditText(rootNode, Url); return findEditText(rootNode, taskMsg.getQr_addr());
} }
return false; return false;
} }
......
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