fixed bug on display buypoints

This commit is contained in:
Mohamed Nouffer
2023-05-16 20:40:02 +05:30
parent 05a812428a
commit 1769d52601
25 changed files with 108 additions and 85 deletions

View File

@ -10,7 +10,7 @@ class AuthService{
Map<String, dynamic> changePassword = {};
String server_url = ConstValues.currentServer();
String url = '${server_url}/api/change-password/';
print('---- toekn is ${token} -----');
print('++++++++${url}');
final http.Response response = await http.put(
Uri.parse(url),
headers: <String, String>{
@ -35,7 +35,7 @@ class AuthService{
Map<String, dynamic> cats = {};
String server_url = ConstValues.currentServer();
String url = '${server_url}/api/login/';
print("------- in logged url ${url} ###### --------");
print('++++++++${url}');
//String url = 'http://localhost:8100/api/login/';
final http.Response response = await http.post(
Uri.parse(url),
@ -59,7 +59,7 @@ class AuthService{
Map<String, dynamic> cats = {};
String server_url = ConstValues.currentServer();
String url = '${server_url}/api/register/';
//String url = 'http://localhost:8100/api/register/';
print('++++++++${url}');
final http.Response response = await http.post(
Uri.parse(url),
headers: <String, String>{
@ -81,7 +81,7 @@ class AuthService{
Map<String, dynamic> cats = {};
String server_url = ConstValues.currentServer();
String url = '${server_url}/api/delete-account/';
//String url = 'http://localhost:8100/api/register/';
print('++++++++${url}');
final http.Response response = await http.get(
Uri.parse(url),
headers: <String, String>{
@ -101,10 +101,7 @@ class AuthService{
List<dynamic> cats = [];
String server_url = ConstValues.currentServer();
String url = '${server_url}/api/userdetials?user_id=${userid}';
//String url = 'http://localhost:8100/api/userdetials?user_id=${userid}';
//String url = 'http://container.intranet.sumasen.net:8100/api/cats/';
print('++++++++${url}');
print("---- UserDetails url is ${url}");
final response = await http.get(Uri.parse(url),
headers: <String, String>{