/* * @author lsy * @date 2019-09-16 **/ import 'dart:math'; import 'package:dio/dio.dart'; import 'package:gm_flutter/commonModel/base/BaseUtil.dart'; import 'DioUtil.dart'; /** * 生产环境 */ const String APP_HOST_RELEASE = "https://x6cgr5y5-gengmei.mock.coding.io"; /** * 测试环境 */ //const String APP_HOST_DEBUG = "http://backend.paas-merchant.envs"; //const String APP_HOST_DEBUG = "http://doctor.paas-merchant.env"; const String APP_HOST_DEBUG = "https://x6cgr5y5-gengmei.mock.coding.io"; /** * 开发环境 */ const String APP_HOST_DEV = "https://x6cgr5y5-gengmei.mock.coding.io"; class Api { static String BUILD_CONFIG; static String PROVIDER_NAME; static Api intance = new Api._(); Api._(); static Api getInstance() { return intance; } String getBaseUrl() { if (!isDebug) { return APP_HOST_RELEASE; } else { return APP_HOST_DEBUG; } } }