| | |
| | | let wxTemps = sessionStorage.getItem('wxTemplates' + appId) |
| | | |
| | | if (appId && window.GLOB.nginx && !wxTemps) { |
| | | this.getTemps(appId) |
| | | if (verify.wxNote === 'true') { |
| | | this.getTemps(appId) |
| | | } |
| | | } else if (wxTemps) { |
| | | wxTemps = JSON.parse(wxTemps) |
| | | |
| | |
| | | } |
| | | |
| | | this.props.onChange(_verify) |
| | | |
| | | if (key === 'wxNote' && value === 'true' && window.GLOB.WXAppID && window.GLOB.nginx) { |
| | | let wxTemps = sessionStorage.getItem('wxTemplates' + window.GLOB.WXAppID) |
| | | |
| | | if (wxTemps) { |
| | | wxTemps = JSON.parse(wxTemps) |
| | | |
| | | this.resetTemps(wxTemps) |
| | | } else { |
| | | this.getTemps(window.GLOB.WXAppID) |
| | | } |
| | | } |
| | | } |
| | | |
| | | onNoteCodeChange = (val, option) => { |
| | |
| | | setTimeout(() => { |
| | | this.props.onChange(_verify_) |
| | | |
| | | if (!window.GLOB.nginx) { |
| | | message.warning('nginx服务尚未开启,请检查配置文件并在服务器中完成nginx设置。') |
| | | return |
| | | } |
| | | |
| | | let wxTemps = sessionStorage.getItem('wxTemplates' + val) |
| | | |
| | | if (wxTemps) { |