|
|
|
@ -195,7 +195,7 @@ function generateNewIndexJsp() {
|
|
|
|
|
let cdnHost = 'https://shixun.educoder.net'
|
|
|
|
|
cdnHost = 'https://ali-cdn.educoder.net'
|
|
|
|
|
cdnHost = ''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var mainRegex = /<script type="text\/javascript" src="\/react\/build\/.\/static\/js\/main.([a-zA-Z0-9]{8,}).js"><\/script>/
|
|
|
|
|
var matchResult = data.match(mainRegex)
|
|
|
|
@ -209,7 +209,9 @@ function generateNewIndexJsp() {
|
|
|
|
|
} else if (window.location.host == 'www.educoder.net') {
|
|
|
|
|
_host = 'https://ali-cdn.educoder.net/react/build/'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
document.write('<script type="text/javascript" src="' + _host + 'js/js_min_all.js"><\\/script>');
|
|
|
|
|
document.write('<script type="text/javascript" src="' + _host + 'js/flv.min.js"><\\/script>');
|
|
|
|
|
document.write('<script type="text/javascript" src="' + _host + 'static/js/main.${matchResult[1]}.js"><\\/script>');
|
|
|
|
|
})()
|
|
|
|
|
</script>
|
|
|
|
@ -230,7 +232,7 @@ function generateNewIndexJsp() {
|
|
|
|
|
.replace(mainRegex, '')
|
|
|
|
|
// .replace('/react/build/./static/css/main', `${cdnHost}/react/build/./static/css/main`)
|
|
|
|
|
// .replace('/react/build/./static/js/main', `${cdnHost}/react/build/./static/js/main`)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// .replace(/https:\/\/testeduplus2.educoder.net/g, '');
|
|
|
|
|
// .replace(/http:\/\/testbdweb.educoder.net/g, '');
|
|
|
|
|
|
|
|
|
|