全志Launcher代码首次提交
This commit is contained in:
39
mylibrary/src/main/java/com/android/api/ServerInterface.java
Normal file
39
mylibrary/src/main/java/com/android/api/ServerInterface.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package com.android.api;
|
||||
|
||||
|
||||
import com.android.api.encrytion.UtilEncrypt;
|
||||
import com.android.util.DeviceUtil;
|
||||
import com.android.util.LogUtils;
|
||||
|
||||
public class ServerInterface {
|
||||
|
||||
public static final int SUCCESS = 200;
|
||||
public static final String IP_ADDRESS="192.168.1.87";
|
||||
|
||||
/**心跳业务IP*/
|
||||
public static final String SERVER_IP_ADDRESS="181b9296940b2b9787a4b781ce52c18f65cb2ae18cfbeb7fa4b6e99dded7f945";
|
||||
/**其他业务IP*/
|
||||
public static final String BUSINESS_IP_ADDRESS="e50cce9d2db6d36b3d13f60ef00e9c1a609e3f82a2fa708bb93b459b2939713c";
|
||||
|
||||
//获取launcher广告资源信息
|
||||
public static final String POST_LAUNCHER_ADS="/app-api/launcher/getLauncher/ads";
|
||||
|
||||
/**上传事件信息*/
|
||||
public static final String POST_EVENTINFO_DEVICE="/app-api/third/launcher/ad/play/callback";
|
||||
|
||||
private static final boolean USER_DEBUG=false;
|
||||
|
||||
|
||||
public static String createHttpUrl(){
|
||||
if(USER_DEBUG) {
|
||||
LogUtils.loge("TEST MODEL");
|
||||
return "http://" + IP_ADDRESS + ":8748";
|
||||
}else {
|
||||
LogUtils.loge("RUNING MODEL");
|
||||
return "http://"+UtilEncrypt.decrypt(BUSINESS_IP_ADDRESS)+":8748";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user