Эх сурвалжийг харах

RA Image
增加对服务器返回错误的消息处理。

Ray Zhang 9 жил өмнө
parent
commit
2b9fcdc9e8

BIN
RA Image/RA Image.xcodeproj/project.xcworkspace/xcuserdata/ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 0
RedAnt ERP Mobile/common/const.h

@@ -73,6 +73,7 @@
 #define RESULT_SESSION_EXPIRED			  -13
 #define RESULT_VER_LOW                   -15
 #define RESULT_BACKEND_CRASH                   -20
+#define RESULT_RESPONSE_ERROR                   -30
 #define RESULT_TIMEOUT                   99
 
 #define RESULT_LOGIN_DEVICE                   -18

+ 4 - 1
common/upload/RANetworkTaskDelegate.m

@@ -81,7 +81,10 @@
         {
             
             jsobj=[NSMutableDictionary new];
-            [jsobj setValue:@"-20" forKey:@"result"];
+            [jsobj setValue:@"-30" forKey:@"result"];
+            [jsobj setValue:@"Can not upload to server, please contact administrator." forKey:@"msg"];
+            
+            
             
         }