fix : token expire

This commit is contained in:
2025-09-02 10:56:20 +03:30
parent 079b3ce78d
commit dfb9298097
5 changed files with 7 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ class AuthPage extends GetView<AuthLogic> {
@override
Widget build(BuildContext context) {
iLog("AuthPage");
return Scaffold(
body: Stack(
alignment: Alignment.center,

View File

@@ -100,7 +100,7 @@ class BuyInProvinceAllPage extends GetView<BuyInProvinceAllLogic> {
),
Text(
item.steward?.guildsName ?? 'N/A',
item.toSteward?.guildsName ?? 'N/Aaq',
textAlign: TextAlign.start,
style: AppFonts.yekan12.copyWith(color: AppColor.bgDark),
),

View File

@@ -50,9 +50,9 @@ class RootLogic extends GetxController {
localDatasource = diChicken.get<ChickenLocalDataSource>();
chickenRepository = diChicken.get<ChickenRepository>();
localDatasource.openBox().then((value) async {
/*localDatasource.openBox().then((value) async {
widelyUsedList.value = localDatasource.getAllWidely();
});
});*/
}

View File

@@ -132,7 +132,7 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
);
}
itemListWidget(AllocatedMadeModel item) {
Row itemListWidget(AllocatedMadeModel item) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
@@ -144,7 +144,7 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
spacing: 4,
children: [
Text(
controller.getBuyerInformation(item)?.user?.fullname ?? 'N/A',
controller.getBuyerInformation(item)?.user?.fullname ?? 'N/Aشششش',
textAlign: TextAlign.center,
style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
),
@@ -208,7 +208,7 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
);
}
itemListExpandedWidget(AllocatedMadeModel item, int index) {
Container itemListExpandedWidget(AllocatedMadeModel item, int index) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 8),
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),

View File

@@ -107,9 +107,5 @@ class AppInterceptor extends Interceptor {
//TODO
void _handleRefreshFailure() {
ApiHandler.cancelAllRequests("Token refresh failed");
if (Get.currentRoute != '/Auth') {
Get.offAllNamed('/Auth', arguments: authArguments ?? 'Module.chicken');
}
}
}