Browse Source

代码修改

huyuguo 3 years ago
parent
commit
1784adb651

+ 1 - 0
app/build.gradle

46
//            enabled true
46
//            enabled true
47
//        }
47
//        }
48
    }
48
    }
49
    ndkVersion '22.1.7171670'
49
50
50
    dataBinding {
51
    dataBinding {
51
        enabled true
52
        enabled true

+ 23 - 3
app/src/main/java/com/electric/chargingpile/activity/MyWebViewActivity.java

722
                break;
722
                break;
723
            case "15":
723
            case "15":
724
                if (MainApplication.isLogin()) {
724
                if (MainApplication.isLogin()) {
725
                    loadDialog.show();
725
                    runOnUiThread(new Runnable() {
726
                        @TargetApi(Build.VERSION_CODES.KITKAT)
727
                        @Override
728
                        public void run() {
729
                            loadDialog.show();
730
                        }
731
                    });
732
726
                    getCarOwnerCertificateList();
733
                    getCarOwnerCertificateList();
727
                } else {
734
                } else {
728
                    startActivity(new Intent(getApplicationContext(), LoginActivity.class));
735
                    startActivity(new Intent(getApplicationContext(), LoginActivity.class));
1594
            @Override
1601
            @Override
1595
            public void onError(Call call, Exception e) {
1602
            public void onError(Call call, Exception e) {
1596
                e.printStackTrace();
1603
                e.printStackTrace();
1597
                loadDialog.dismiss();
1604
                runOnUiThread(new Runnable() {
1605
                    @TargetApi(Build.VERSION_CODES.KITKAT)
1606
                    @Override
1607
                    public void run() {
1608
                        loadDialog.dismiss();
1609
                    }
1610
                });
1611
1598
                Toast.makeText(getApplicationContext(), e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();
1612
                Toast.makeText(getApplicationContext(), e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();
1599
            }
1613
            }
1600
1614
1601
            @Override
1615
            @Override
1602
            public void onResponse(String response) {
1616
            public void onResponse(String response) {
1603
                loadDialog.dismiss();
1617
                runOnUiThread(new Runnable() {
1618
                    @TargetApi(Build.VERSION_CODES.KITKAT)
1619
                    @Override
1620
                    public void run() {
1621
                        loadDialog.dismiss();
1622
                    }
1623
                });
1604
                String rtnCode = JsonUtils.getKeyResult(response, "rtnCode");
1624
                String rtnCode = JsonUtils.getKeyResult(response, "rtnCode");
1605
                if ("01".equals(rtnCode)) {
1625
                if ("01".equals(rtnCode)) {
1606
                    String data = JsonUtils.getKeyResult(response, "data");
1626
                    String data = JsonUtils.getKeyResult(response, "data");

+ 0 - 0
gradlew