v1.0.28
This commit is contained in:
parent
928396112a
commit
adddf41a01
@ -1,5 +1,9 @@
|
|||||||
Workout Test and Diet 4 You Common Util Functions
|
Workout Test and Diet 4 You Common Util Functions
|
||||||
|
|
||||||
|
### Version 1.0.28
|
||||||
|
|
||||||
|
- api isWeb
|
||||||
|
|
||||||
### Version 1.0.27
|
### Version 1.0.27
|
||||||
|
|
||||||
- customer_membership end_date
|
- customer_membership end_date
|
||||||
|
@ -63,10 +63,10 @@ class APIClient with Common, Logging {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<String> post(String endPoint, String body) async {
|
Future<String> post(String endPoint, String body) async {
|
||||||
/*if ( kIsWeb ) {
|
if (kIsWeb) {
|
||||||
APIWebClient webClient = APIWebClient();
|
APIWebClient webClient = APIWebClient();
|
||||||
return webClient.post(endPoint, body);
|
return webClient.post(endPoint, body);
|
||||||
}*/
|
}
|
||||||
final url = Cache().getBaseUrl() + endPoint;
|
final url = Cache().getBaseUrl() + endPoint;
|
||||||
log(" ------------ http/post body $body - url: $url ");
|
log(" ------------ http/post body $body - url: $url ");
|
||||||
try {
|
try {
|
||||||
@ -106,10 +106,10 @@ class APIClient with Common, Logging {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<String> get(String endPoint, String param) async {
|
Future<String> get(String endPoint, String param) async {
|
||||||
/*if ( kIsWeb ) {
|
if (kIsWeb) {
|
||||||
APIWebClient webClient = APIWebClient();
|
APIWebClient webClient = APIWebClient();
|
||||||
return webClient.get(endPoint, param);
|
return webClient.get(endPoint, param);
|
||||||
}*/
|
}
|
||||||
final url = Cache().getBaseUrl() + endPoint + param;
|
final url = Cache().getBaseUrl() + endPoint + param;
|
||||||
try {
|
try {
|
||||||
log("-------- API get $url");
|
log("-------- API get $url");
|
||||||
|
Loading…
Reference in New Issue
Block a user