|
@@ -1894,7 +1894,12 @@
|
|
|
[appDelegate Logout];
|
|
[appDelegate Logout];
|
|
|
return RESULT_NET_NOTAVAILABLE;
|
|
return RESULT_NET_NOTAVAILABLE;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ if(result==RESULT_NET_ERROR)
|
|
|
|
|
+ {
|
|
|
|
|
+ DebugLog(@"USER NOT AUTHORIZED CODE=%d ",result);
|
|
|
|
|
+ [appDelegate Logout];
|
|
|
|
|
+ return RESULT_NET_ERROR;
|
|
|
|
|
+ }
|
|
|
if(result!=AP_USER_AUTH)
|
|
if(result!=AP_USER_AUTH)
|
|
|
{
|
|
{
|
|
|
DebugLog(@"USER NOT AUTHORIZED CODE=%d ",result);
|
|
DebugLog(@"USER NOT AUTHORIZED CODE=%d ",result);
|
|
@@ -2318,9 +2323,15 @@
|
|
|
DetailContent * detailContent = [[DetailContent alloc] init];
|
|
DetailContent * detailContent = [[DetailContent alloc] init];
|
|
|
NSMutableArray* segments = [[NSMutableArray alloc] init];
|
|
NSMutableArray* segments = [[NSMutableArray alloc] init];
|
|
|
detailContent.segments = segments;
|
|
detailContent.segments = segments;
|
|
|
- if(![NetworkUtils IsNetworkAvailable])
|
|
|
|
|
|
|
+// if(![NetworkUtils IsNetworkAvailable])
|
|
|
|
|
+// {
|
|
|
|
|
+// detailContent.result_code = RESULT_NET_NOTAVAILABLE;
|
|
|
|
|
+// return detailContent;
|
|
|
|
|
+// }
|
|
|
|
|
+ if([jsobj[@"result"]intValue]== RESULT_NET_NOTAVAILABLE)
|
|
|
{
|
|
{
|
|
|
detailContent.result_code = RESULT_NET_NOTAVAILABLE;
|
|
detailContent.result_code = RESULT_NET_NOTAVAILABLE;
|
|
|
|
|
+ detailContent.err_msg = NSLocalizedString(@"net_not_available", nil);
|
|
|
return detailContent;
|
|
return detailContent;
|
|
|
}
|
|
}
|
|
|
if (jsobj==nil)
|
|
if (jsobj==nil)
|
|
@@ -2362,6 +2373,7 @@
|
|
|
{
|
|
{
|
|
|
DebugLog(@"USER NOT AUTHORIZED CODE=%d ",result);
|
|
DebugLog(@"USER NOT AUTHORIZED CODE=%d ",result);
|
|
|
detailContent.result_code = result;
|
|
detailContent.result_code = result;
|
|
|
|
|
+ detailContent.err_msg = jsobj[@"err_msg"];
|
|
|
return detailContent;
|
|
return detailContent;
|
|
|
|
|
|
|
|
}
|
|
}
|