| | |
| | | if (is_use_test_server) { |
| | | isTestView = 1 |
| | | } |
| | | |
| | | } |
| | | |
| | | const pdomain = '/' // 线上 |
| | |
| | | const search = location.search |
| | | // 参数数组 |
| | | let querys = [] |
| | | if (search && search.indexOf('?')>-1) { |
| | | querys = search.split('?')[1].split('&').filter((str)=>{ |
| | | if (search && search.indexOf('?') > -1) { |
| | | querys = search.split('?')[1].split('&').filter((str) => { |
| | | const key = str.split('=')[0] |
| | | const value = str.split('=')[1] |
| | | return (key != 'code' && key != 'state') |
| | |
| | | |
| | | // 补充参数 |
| | | if (querys.length) { |
| | | indexUrl += '?'+querys.join('&') |
| | | indexUrl += '?' + querys.join('&') |
| | | } |
| | | |
| | | return long.replace('{{appid}}', appid).replace('{{scope}}', scope).replace('{{url}}', encodeURIComponent(indexUrl)) |
| | |
| | | console.log = () => {} |
| | | } |
| | | |
| | | var domain; |
| | | var domain |
| | | |
| | | if (istest == 0) domain = pdomain // 线上 |
| | | if (istest == 1) domain = tdomain // 本地 |