product recommendations api integration - pending
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:traderscircuit/model/ContactUsModel/contact_us_cat_model.dart';
|
||||
import 'package:traderscircuit/model/ContactUsModel/contact_us_model.dart';
|
||||
|
||||
import '../model/ContactUsModel/ticket_details_model.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
class ContactUsController extends GetxController {
|
||||
RxBool isLoading = true.obs;
|
||||
|
||||
@@ -11,7 +11,6 @@ class NetworkApiServices {
|
||||
String basicAuth = 'Basic ' +
|
||||
base64.encode(
|
||||
utf8.encode('traderCircuitUser:71%@L%es^bUX94`J9XT*@bh,._WWM{'));
|
||||
@override
|
||||
Future<ResponseData> getApi(String url, {bool isAuth = false}) async {
|
||||
if (kDebugMode) {
|
||||
print("api url is >>> $url");
|
||||
|
||||
@@ -15,7 +15,7 @@ import 'package:traderscircuit/resources/routes/route_name.dart';
|
||||
import 'package:traderscircuit/view/onBoarding/splashScreen1.dart';
|
||||
import 'package:traderscircuit/view_model/Login/verify_number_api.dart';
|
||||
|
||||
bool? isVendorExist;
|
||||
bool? isUserExist;
|
||||
int? isProfileUpdated;
|
||||
int? isriskProfileUpdated;
|
||||
int? isKycUpdated;
|
||||
@@ -56,14 +56,14 @@ class _VerifyOTPState extends State<VerifyOTP> {
|
||||
if (resp.status == ResponseStatus.SUCCESS) {
|
||||
log(resp.data.toString());
|
||||
Get.back();
|
||||
isVendorExist = resp.data["data"]["vendor_account_exist"];
|
||||
isUserExist = resp.data["data"]["user_account_exist"];
|
||||
isProfileUpdated = resp.data["data"]["user_data"]["profile_updated"];
|
||||
isriskProfileUpdated =
|
||||
resp.data["data"]["user_data"]["risk_profile_updated"];
|
||||
isKycUpdated = resp.data["data"]["user_data"]["kyc_updated"];
|
||||
isSecuredAccess = resp.data["data"]["user_data"]["secured_access"];
|
||||
|
||||
if (isVendorExist!) {
|
||||
if (isUserExist!) {
|
||||
SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
await prefs.setString(
|
||||
'accessToken', resp.data["data"]["access-token"]);
|
||||
|
||||
Reference in New Issue
Block a user