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

feat:微信端、h5屏蔽一些方法

wangchuanjin 1 жил өмнө
parent
commit
c8fea3b0f9

+ 3 - 2
src/jfw/modules/app/src/web/staticres/jyapp/js/common.js

@@ -1734,6 +1734,7 @@ function afterLoginSuccess (type, canBack) {
 
 //ios JyObj对象加载完成回调
 function afterPageInit () {
+  if (!utilsEnv.platformEnvs.inApp) return
   setInterval(function () {
     redSpotOnMenu();
   }, 600000);
@@ -1741,7 +1742,7 @@ function afterPageInit () {
     afterJyObjInit();
     latlongitude();//记录用户经纬度
   } catch (e) {}
-  $.post("/jyapp/free/afterPageLoadToCheck?t=" + new Date().getTime(), {
+  $post("/jyapp/free/afterPageLoadToCheck?t=" + new Date().getTime(), {
     sign: JyObj.getUserToken(),
     rid: JyObj.getPushRid(),
     oid: getOtherPushId(),
@@ -1780,7 +1781,7 @@ function afterPageInit () {
     }
   });
   //记录推送id
-  savePushIdMsg();
+  savePushIdMsg();.
 }
 
 function compareVersion (curVersion, upVersion) {