فهرست منبع

ERP Mobile
修复错误使用google analytics

Ray Zhang 7 سال پیش
والد
کامیت
ed44111ecc
2فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 6 2
      RedAnt ERP Mobile/common/ERPUtils.m
  2. 1 1
      RedAnt ERP Mobile/common/data_provider/RANetwork.m

+ 6 - 2
RedAnt ERP Mobile/common/ERPUtils.m

@@ -253,7 +253,11 @@
 
 + (void)googleAnalyticsSendRequestString:(NSString *)urlString WithScreen:(NSString *)screenName Action:(NSString *)action Extra:(NSDictionary *)extra {
 
-#if defined(BUILD_NPD) || defined(BUILD_USAI) || defined(BUILD_UWAVER)
+#ifndef BUILD_NPD
+    return;
+#endif
+    
+//#if defined(BUILD_NPD) || defined(BUILD_USAI) || defined(BUILD_UWAVER)
     if (!screenName && !action && !extra) {
         return;
     }
@@ -315,7 +319,7 @@
 
     }
 
-#endif
+//#endif
     
 }
 

+ 1 - 1
RedAnt ERP Mobile/common/data_provider/RANetwork.m

@@ -480,7 +480,7 @@ repeat:
             {
                 [RANetwork err_log:[RAUtils base64en:[RAConvertor dict2string:params]] result:[RAUtils base64en:[RAConvertor dict2string:ret]] module:url code:RESULT_NET_ERROR];
             }
-#if defined(BUILD_NPD) || defined(BUILD_USAI) || defined(BUILD_UWAVER)
+#if defined(BUILD_NPD)// || defined(BUILD_USAI) || defined(BUILD_UWAVER)
             [ERPUtils googleAnalyticsSendRequestString:url WithScreen:screenName Action:userAction Extra:extra];
 #endif
             return jsonData;