|
|
@ -15,11 +15,11 @@ import 'data/page.dart'; |
|
|
|
|
|
|
|
|
|
|
|
part 'min_api.g.dart'; |
|
|
|
part 'min_api.g.dart'; |
|
|
|
|
|
|
|
|
|
|
|
const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///正式 |
|
|
|
// const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///正式 |
|
|
|
const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///正式 |
|
|
|
// const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///正式 |
|
|
|
|
|
|
|
|
|
|
|
// const base_url = "http://192.168.10.236:8765/app/"; ///费韬 |
|
|
|
const base_url = "http://192.168.10.236:8765/app/"; ///费韬 |
|
|
|
// const baseUrl = "http://192.168.10.236:8765/app/"; ///费韬 |
|
|
|
const baseUrl = "http://192.168.10.236:8765/app/"; ///费韬 |
|
|
|
|
|
|
|
|
|
|
|
// const base_url = "http://192.168.10.37:8766/app/"; |
|
|
|
// const base_url = "http://192.168.10.37:8766/app/"; |
|
|
|
// const baseUrl = "http://192.168.10.37:8766/app/"; |
|
|
|
// const baseUrl = "http://192.168.10.37:8766/app/"; |
|
|
@ -31,11 +31,15 @@ abstract class MinApiService { |
|
|
|
String baseUrl, |
|
|
|
String baseUrl, |
|
|
|
BuildContext context, |
|
|
|
BuildContext context, |
|
|
|
String token, |
|
|
|
String token, |
|
|
|
|
|
|
|
String tenant, |
|
|
|
bool showLoading = true, |
|
|
|
bool showLoading = true, |
|
|
|
bool pay = false, |
|
|
|
bool pay = false, |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
Map<String, dynamic> headers = |
|
|
|
Map<String, dynamic> headers = |
|
|
|
(token == null || token == "") ? {} : {'token': "Bearer $token"}; |
|
|
|
(token == null || token == "") ? {} : {'token': "Bearer $token"}; |
|
|
|
|
|
|
|
if (tenant != null && tenant != "") { |
|
|
|
|
|
|
|
headers["tenant"] = tenant; |
|
|
|
|
|
|
|
} |
|
|
|
if (pay) { |
|
|
|
if (pay) { |
|
|
|
headers["Environment"] = "app"; |
|
|
|
headers["Environment"] = "app"; |
|
|
|
} |
|
|
|
} |
|
|
|