From 6b8e1bf26f572a98fbbd23f83ee8d1da3f226065 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Mon, 13 Nov 2023 13:56:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/index.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/utils/index.js b/utils/index.js index efc155b..c9f6e56 100644 --- a/utils/index.js +++ b/utils/index.js @@ -50,22 +50,19 @@ export function merPath(path, mer_id, name){ * @param {Object} puid */ export function silenceBindingSpread() { + let puid = 0; //#ifdef H5 - let puid = Cache.get('spread'); + puid = Cache.get('spread'); //#endif //#ifdef MP || APP-PLUS - let puid = getApp().globalData.spid; - if (!puid) { - puid = getApp().globalData.code; - } + puid = getApp().globalData.spid; + if (!puid) puid = getApp().globalData.code; //#endif puid = parseInt(puid); - if (Number.isNaN(puid)) { - puid = 0; - } + if (Number.isNaN(puid)) puid = 0; if (puid) { //#ifdef H5