Browse Source

添加打点,将url改为正式环境

hy 3 years ago
parent
commit
789da80e9e

+ 1 - 0
app/src/main/java/com/electric/chargingpile/activity/ChargingStatusActivity.java

735
735
736
        resumeUserCar();
736
        resumeUserCar();
737
        layoutCarCertificate.setOnClickListener(v->{
737
        layoutCarCertificate.setOnClickListener(v->{
738
            MobclickAgent.onEvent(getApplicationContext(),"1154");
738
            Intent intent = new Intent(getApplicationContext(), CarOwnerCertificateActivity.class);
739
            Intent intent = new Intent(getApplicationContext(), CarOwnerCertificateActivity.class);
739
            startActivity(intent);
740
            startActivity(intent);
740
        });
741
        });

+ 1 - 0
app/src/main/java/com/electric/chargingpile/activity/MainMapActivity.java

955
                                    "选择您的意向车型或认证车主\n" +
955
                                    "选择您的意向车型或认证车主\n" +
956
                                    "还有充电奖励抵扣电费")
956
                                    "还有充电奖励抵扣电费")
957
                            .setGoRegister(v->{
957
                            .setGoRegister(v->{
958
                                MobclickAgent.onEvent(getApplicationContext(),"1152");
958
                                Intent intent = new Intent(getApplicationContext(), CarOwnerCertificateActivity.class);
959
                                Intent intent = new Intent(getApplicationContext(), CarOwnerCertificateActivity.class);
959
                                startActivity(intent);
960
                                startActivity(intent);
960
                            })
961
                            })

+ 2 - 0
app/src/main/java/com/electric/chargingpile/activity/UserCenterActivity.java

257
                        .setlogoDialogImg(R.drawable.ic_red_envelope)
257
                        .setlogoDialogImg(R.drawable.ic_red_envelope)
258
                        .setContentImg(R.drawable.ic_50_coupon)
258
                        .setContentImg(R.drawable.ic_50_coupon)
259
                        .setGoRegister(v->{
259
                        .setGoRegister(v->{
260
                            MobclickAgent.onEvent(getApplicationContext(),"1153");
260
                            Intent intent = new Intent(getApplicationContext(), CarOwnerCertificateActivity.class);
261
                            Intent intent = new Intent(getApplicationContext(), CarOwnerCertificateActivity.class);
261
                            startActivity(intent);
262
                            startActivity(intent);
262
                        })
263
                        })
835
                break;
836
                break;
836
837
837
            case R.id.rl_car_owner_certificate: // 车主认证
838
            case R.id.rl_car_owner_certificate: // 车主认证
839
                MobclickAgent.onEvent(getApplicationContext(),"1155");
838
                if (!MainApplication.isLogin()) {
840
                if (!MainApplication.isLogin()) {
839
                    Toast.makeText(getApplication(), "请先登录", Toast.LENGTH_SHORT).show();
841
                    Toast.makeText(getApplication(), "请先登录", Toast.LENGTH_SHORT).show();
840
                    startActivity(new Intent(getApplication(), LoginActivity.class));
842
                    startActivity(new Intent(getApplication(), LoginActivity.class));

+ 2 - 2
app/src/main/java/com/electric/chargingpile/activity/UserInfoActivity.java

434
                if (certificateStatus == -2) {
434
                if (certificateStatus == -2) {
435
                    getCarOwnerCertificateList(true);
435
                    getCarOwnerCertificateList(true);
436
                }
436
                }
437
437
                MobclickAgent.onEvent(getApplicationContext(),"1151");
438
                break;
438
                break;
439
            case R.id.carIntentModel:
439
            case R.id.carIntentModel:
440
                CarBrandActivity.actionStart(this,"1");
440
                CarBrandActivity.actionStart(this,"1");
441
//                startActivityForResult(new Intent(UserInfoActivity.this, SelectCarActivity.class), 11);
441
//                startActivityForResult(new Intent(UserInfoActivity.this, SelectCarActivity.class), 11);
442
442
                MobclickAgent.onEvent(getApplicationContext(),"1150");
443
                break;
443
                break;
444
        }
444
        }
445
    }
445
    }

+ 6 - 6
app/src/main/java/com/electric/chargingpile/application/MainApplication.java

91
    public static String firstPoint = "";
91
    public static String firstPoint = "";
92
    public static Boolean firstSsyd;
92
    public static Boolean firstSsyd;
93
    public static String password = "";
93
    public static String password = "";
94
        public static String url = "http://59.110.68.162";// 充电桩测试环境
95
    public static String pic_url = "http://59.110.68.162/zhannew/uploadfile/";
96
//    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
97
//    public static String pic_url = "http://cdz.evcharge.cc/zhannew/uploadfile/";
94
//        public static String url = "http://59.110.68.162";// 充电桩测试环境
95
//    public static String pic_url = "http://59.110.68.162/zhannew/uploadfile/";
96
    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
97
    public static String pic_url = "http://cdz.evcharge.cc/zhannew/uploadfile/";
98

98

99
        public static String urlNew = "http://123.56.67.7:83/api/0300";// 一电测试环境
100
//    public static String urlNew = "https://api.touchev.com:83/api/0300";// 一电正式环境
99
//        public static String urlNew = "http://123.56.67.7:83/api/0300";// 一电测试环境
100
    public static String urlNew = "https://api.touchev.com:83/api/0300";// 一电正式环境
101

101

102

102

103
    //	public static String url = "https://cdz.d1ev.com";
103
    //	public static String url = "https://cdz.d1ev.com";

+ 2 - 2
zxing/src/main/java/com/google/zxing/client/android/constant/UrlConstants.java

1
package com.google.zxing.client.android.constant;
1
package com.google.zxing.client.android.constant;
2
2
3
public interface UrlConstants {
3
public interface UrlConstants {
4
//    String HOST_URL = "http://cdz.evcharge.cc/zhannew/basic/web/index.php/";
5
    String HOST_URL = "http://59.110.68.162/zhannew/basic/web/index.php/"; //测试链接
4
    String HOST_URL = "http://cdz.evcharge.cc/zhannew/basic/web/index.php/";
5
//    String HOST_URL = "http://59.110.68.162/zhannew/basic/web/index.php/"; //测试链接
6
6
7
    String USER_CHARGING_CHECK_URL = HOST_URL + "api/charge/check-user";
7
    String USER_CHARGING_CHECK_URL = HOST_URL + "api/charge/check-user";
8
    String START_CHARGING_URL = HOST_URL + "api/charge/start";
8
    String START_CHARGING_URL = HOST_URL + "api/charge/start";