riku
2025-10-30 e9aa93f381afcf9f9cf0c39f2b9e32375ed49528
app/src/main/java/cn/flightfeather/thirdappmodule/CommonApplication.java
@@ -19,7 +19,6 @@
import cn.flightfeather.thirdappmodule.util.GlobalConfig;
import cn.flightfeather.thirdappmodule.util.crashreport.MyCrashHandler;
import cn.flightfeather.thirdappmodule.util.notification.MyNotificationChannel;
import cn.flightfeather.thirdappmodule.util.push.PushService;
import cn.flightfeather.thirdappmodule.util.tbs.Tbs;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
@@ -30,13 +29,19 @@
 */
public class CommonApplication extends Application {
//    public final String ROOT_URL ="http://192.168.0.200:8080/";
//    public final String ROOT_URL_IMAGE ="http://192.168.0.200:8080/images/";
    public final String ROOT_URL ="http://192.168.0.146:8080/";
    public final String ROOT_URL_IMAGE ="http://192.168.0.146:8080/images/";
    public String ROOT_URL_RELEASE = "http://47.100.191.150:9005/";
//    public String ROOT_URL_RELEASE = "http://47.100.191.150:9005/";
    public String ROOT_URL_RELEASE = "https://fyami.com.cn:447/";
    public String ROOT_URL_RELEASE_IMAGE = ROOT_URL_RELEASE + "images/";
    public String ROOT_URL ="http://192.168.0.103:9001/";
//    public String ROOT_URL_IMAGE = ROOT_URL + "images/";
    public String ROOT_URL_IMAGE = ROOT_URL_RELEASE + "images/";
    // 飞羽环境系统后端接口ip
//    public String ROOT_URL_RELEASE_2 = "http://47.100.191.150:9006/";
    public String ROOT_URL_RELEASE_2 = "https://fyami.com.cn/";
    public String ROOT_URL_RELEASE_IMAGE_2 = ROOT_URL_RELEASE_2 + "images/";
    private Retrofit retrofit;
    private Retrofit retrofitImage;
@@ -52,10 +57,10 @@
    public void onCreate() {
        super.onCreate();
        new MyCrashHandler(this).init();
        //初始化网络请求
        RetrofitFactory.init(this);
        new MyCrashHandler(this).init();
        //x5内核初始化
        Tbs.Companion.init(this);
@@ -64,7 +69,7 @@
        MyNotificationChannel.Companion.init(this);
        //初始化移动推送
        PushService.Companion.init(this);
//        PushService.Companion.init(this);
        if (instance == null) {
            instance = this;