cuiyalong 2 anni fa
parent
commit
4122747ef7

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

@@ -358,7 +358,7 @@ window.utilsEnv = {
     var inApp = this.getIsInTheAppContainer()
     var platformOS = this.androidOrIOS()
     var getPlatform = function () {
-      var h5host = this.getIsH5HostName()
+      var h5host = window.utilsEnv.getIsH5HostName()
       if (inApp) {
         return 'app'
       } else if (h5host) {

+ 1 - 1
src/web/staticres/common-module/public/js/utils.js

@@ -144,7 +144,7 @@ if (!window.utilsEnv) {
       var inApp = this.getIsInTheAppContainer()
       var platformOS = this.androidOrIOS()
       var getPlatform = function () {
-        var h5host = this.getIsH5HostName()
+        var h5host = window.utilsEnv.getIsH5HostName()
         if (inApp) {
           return 'app'
         } else if (h5host) {