Browse Source

新增print("软件当前运行的模式 kReleaseMode:"+(kReleaseMode ? "发布模式":"调试模式"));

dev
huixiang_app 1 year ago
parent
commit
774f5516ec
  1. 1
      lib/retrofit/retrofit_api.dart

1
lib/retrofit/retrofit_api.dart

@ -92,6 +92,7 @@ abstract class ApiService {
if (pay) { if (pay) {
headers["Environment"] = "app"; headers["Environment"] = "app";
} }
print("软件当前运行的模式 kReleaseMode:"+(kReleaseMode ? "发布模式":"调试模式"));
if (kReleaseMode) baseUrl = serviceBaseUrl; if (kReleaseMode) baseUrl = serviceBaseUrl;
if (isIp) baseUrl = ipBaseUrl; if (isIp) baseUrl = ipBaseUrl;
dio.options = BaseOptions( dio.options = BaseOptions(

Loading…
Cancel
Save