|
|
@ -54,14 +54,14 @@ import 'data/wx_pay.dart'; |
|
|
|
|
|
|
|
|
|
|
|
part 'retrofit_api.g.dart'; |
|
|
|
part 'retrofit_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://platform.prod.kunqi.lotus-wallet.com/app/"; ///222 |
|
|
|
// const base_url = "http://platform.prod.kunqi.lotus-wallet.com/app/"; ///222 |
|
|
|
// const baseUrl = "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 base_url = "http://192.168.10.236:8766/app/"; ///费韬 |
|
|
|
// const baseUrl = "http://192.168.10.236:8766/app/"; ///费韬 |
|
|
|
const baseUrl = "http://192.168.10.236:8766/app/"; ///费韬 |
|
|
|
|
|
|
|
|
|
|
|
// const base_url = "http://192.168.10.159:8766/app/"; ///费韬 |
|
|
|
// const base_url = "http://192.168.10.159:8766/app/"; ///费韬 |
|
|
|
// const baseUrl = "http://192.168.10.159:8766/app/"; ///费韬 |
|
|
|
// const baseUrl = "http://192.168.10.159:8766/app/"; ///费韬 |
|
|
@ -85,9 +85,9 @@ abstract class ApiService { |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
Map<String, dynamic> headers = |
|
|
|
Map<String, dynamic> headers = |
|
|
|
(token == null || token == "") ? {} : {'token': "Bearer $token"}; |
|
|
|
(token == null || token == "") ? {} : {'token': "Bearer $token"}; |
|
|
|
if (pay) { |
|
|
|
// if (pay) { |
|
|
|
headers["Environment"] = "app"; |
|
|
|
headers["Environment"] = "app"; |
|
|
|
} |
|
|
|
// } |
|
|
|
dio.options = BaseOptions( |
|
|
|
dio.options = BaseOptions( |
|
|
|
connectTimeout: 60000, |
|
|
|
connectTimeout: 60000, |
|
|
|
receiveTimeout: 60000, |
|
|
|
receiveTimeout: 60000, |
|
|
|