From f248207e3cb568b3d1f1e5be07a92dc915e89731 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 八月 2022 11:28:51 +0800 Subject: [PATCH] 2022-08-02 --- src/views/design/index.jsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/views/design/index.jsx b/src/views/design/index.jsx index e995f61..d596e2f 100644 --- a/src/views/design/index.jsx +++ b/src/views/design/index.jsx @@ -22,6 +22,7 @@ if (window.GLOB.systemType !== 'production' && window.GLOB.WXAppID && !sessionStorage.getItem('wxTemplates')) { Api.wxAccessToken().then(res => { let wxtoken = res.oa_access_token || '' + wxtoken = '59_DH0hrAp0B8jtdJvU-7BV_-nG01qh2rUU1L8ihj-2pMWlUFLE2eEtVv4zZYAUIKcxCit4SgOTwxvUGdYHltaha3RmgnZqkQSgkxXRm9hz18kGbGhMc5r11W5Iv9Xr50Pz-Sz7FUVHCM-6GZLXJPIjAIAVBU' let minitoken = res.mini_access_token || '' if (wxtoken) { @@ -29,7 +30,7 @@ if (res.template_list) { let temps = res.template_list.filter(item => item.primary_industry) sessionStorage.setItem('wxTemplates', JSON.stringify(temps)) - } else { + } else if (res.errcode === 0) { sessionStorage.setItem('wxTemplates', JSON.stringify([])) } }) -- Gitblit v1.8.0