Selaa lähdekoodia

完成Apex Mobile增加新的order history网络请求接口,替换旧接口;
完成Apex Mobile detail网络请求接口,替换旧接口。
修改前两天新增的接口,增加网络联通性检测。
完成Apex Mobile search网络请求接口,替换旧接口。

Ray Zhang 6 vuotta sitten
vanhempi
commit
337fc96fb5
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      common/NetworkUtils.m

+ 9 - 0
common/NetworkUtils.m

@@ -576,6 +576,15 @@ repeat:
 {
 //    __block int retry = 0;
     
+    
+    
+        if(![NetworkUtils IsNetworkAvailable])
+        {
+            
+            result([[RAConvertor string2dict:[NSString stringWithFormat:@"{'result':%d}",RESULT_NET_NOTAVAILABLE]] mutableCopy]);
+    //        return detailContent;
+            return nil;
+        }
 
     params = [self prepare_addtional_params:params];