diff --git a/app/src/main/java/com/arpa/hndahesudintocctmsdriver/constant/NewLJConstant.java b/app/src/main/java/com/arpa/hndahesudintocctmsdriver/constant/NewLJConstant.java index 5706a0e..197cb40 100644 --- a/app/src/main/java/com/arpa/hndahesudintocctmsdriver/constant/NewLJConstant.java +++ b/app/src/main/java/com/arpa/hndahesudintocctmsdriver/constant/NewLJConstant.java @@ -1,5 +1,7 @@ package com.arpa.hndahesudintocctmsdriver.constant; +import com.arpa.hndahesudintocctmsdriver.BuildConfig; + /** * @author hlh * @version 1.0.0 @@ -10,8 +12,8 @@ public class NewLJConstant { public final static String ENTER_PRISE_CODE ="E0019169"; - public final static String ENTER_PRISE_IDENTITY ="95033cc3492e420d83d7f09eea1400ac"; + public final static String ENTER_PRISE_IDENTITY = BuildConfig.isTest?"95033cc3492e420d83d7f09eea1400ac":"b4a472a025e443b383970cdd5465552e"; - public final static String ENTER_PRISE_KEY ="e9844a9b0bba417e89cb8623489abd2f"; + public final static String ENTER_PRISE_KEY =BuildConfig.isTest?"e9844a9b0bba417e89cb8623489abd2f":"b948efbb4c2a4ba0805c534f2fba0c89"; } diff --git a/app/src/main/java/com/arpa/hndahesudintocctmsdriver/request/net/Api.java b/app/src/main/java/com/arpa/hndahesudintocctmsdriver/request/net/Api.java index 801209b..44b6bdc 100644 --- a/app/src/main/java/com/arpa/hndahesudintocctmsdriver/request/net/Api.java +++ b/app/src/main/java/com/arpa/hndahesudintocctmsdriver/request/net/Api.java @@ -29,7 +29,7 @@ import retrofit2.http.Query; public interface Api { - String BASE_URL = "http://api.kehui56.cn/api/v1/"; + String BASE_URL = BuildConfig.isTest? "http://api.kehui56.cn/api/v1/":"https://api.kehui56.com/api/v1/"; //获取版本