| | |
| | | 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) { |
| | |
| | | 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([])) |
| | | } |
| | | }) |