|
|
|
@ -59,22 +59,19 @@ import 'data/vip_rule_details.dart';
|
|
|
|
|
part 'retrofit_api.g.dart'; |
|
|
|
|
|
|
|
|
|
// const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///正式 |
|
|
|
|
// const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///正式 |
|
|
|
|
|
|
|
|
|
// const base_url = "http://platform.prod.kunqi.lotus-wallet.com/app/"; ///222 |
|
|
|
|
// const baseUrl = "http://platform.prod.kunqi.lotus-wallet.com/app/"; ///222 |
|
|
|
|
|
|
|
|
|
const base_url = "http://192.168.10.236:8766/app/"; ///费韬 |
|
|
|
|
const baseUrl = "http://192.168.10.236:8766/app/"; ///费韬 |
|
|
|
|
// const base_url = "http://192.168.10.236:8766/app/"; ///费韬 |
|
|
|
|
|
|
|
|
|
// const base_url = "http://192.168.10.37:8766/app/"; |
|
|
|
|
// const baseUrl = "http://192.168.10.37:8766/app/"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const base_url = "http://192.168.10.132:8766/app/";///詹云久 |
|
|
|
|
// const baseUrl = "http://192.168.10.132:8766/app/";///詹云久 |
|
|
|
|
|
|
|
|
|
@RestApi(baseUrl: baseUrl) |
|
|
|
|
const localBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///本地 |
|
|
|
|
const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线上 |
|
|
|
|
|
|
|
|
|
@RestApi(baseUrl: localBaseUrl) |
|
|
|
|
abstract class ApiService { |
|
|
|
|
factory ApiService( |
|
|
|
|
Dio dio, { |
|
|
|
@ -147,7 +144,7 @@ abstract class ApiService {
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if (kReleaseMode) { |
|
|
|
|
baseUrl = base_url; |
|
|
|
|
baseUrl = serviceBaseUrl; |
|
|
|
|
} |
|
|
|
|
return _ApiService(dio, baseUrl: baseUrl); |
|
|
|
|
} |
|
|
|
|