whyclj
2019-10-23 5ff539b35722f059019057fa7a214906b695d6c8
platforms/android/app/src/main/java/io/hybird/jsbridge/JsInterface.java
@@ -34,7 +34,7 @@
        this.webView = webView;
        this.activity = activity;
        String server_ip = readServerIp();
        //server_ip = "192.168.7.130";
        server_ip = "192.168.43.33";
        service = new MyInteractionService(server_ip,this);
@@ -67,9 +67,10 @@
    //设置当前设备IP
    @JavascriptInterface
    public void setUpDeviceIp(String deviceIp){
        writeServerIp(deviceIp);
        Log.e(TAG, "setUpDeviceIp: "+deviceIp );
        ServiceModel model = new ServiceModel();
        boolean flag = service.setUpDeviceIp(deviceIp);
        writeServerIp(deviceIp);
        if(flag){
            model.code = 1;
        }