From d561b3598af85eeac8a2c483584fbf985c089006 Mon Sep 17 00:00:00 2001 From: lijia Date: Tue, 17 Dec 2024 15:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E8=B7=AF=E4=BA=A4=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E4=B8=80=E9=94=AE=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hndahesudintocctmsdriver/constant/NewLJConstant.java | 6 ++++-- .../com/arpa/hndahesudintocctmsdriver/request/net/Api.java | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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/"; //获取版本