diff --git a/Application/Admin/View/GameSource/add.html b/Application/Admin/View/GameSource/add.html index 1c9c6d83f..807528a41 100644 --- a/Application/Admin/View/GameSource/add.html +++ b/Application/Admin/View/GameSource/add.html @@ -212,7 +212,9 @@ var userInfo = {userId:"kazaff", md5:""}; //用户会话信息 var chunkSize = 5000 * 1024; //分块大小 var uniqueFileName = null; //文件唯一标识符 var md5Mark = null; -var backEndUrl = "{:U('File/shard_upload',array('session_id'=>session_id()))}"; +// var backEndUrl = "{:U('File/shard_upload',array('session_id'=>session_id()))}"; + +var backEndUrl = "http://8.136.139.249:8009/admin.php?s=/File/shard_upload.html"; WebUploader.Uploader.register({ "before-send-file" : "beforeSendFile", "before-send" : "beforeSend", @@ -321,7 +323,7 @@ var uploader = new WebUploader.Uploader({ // swf文件路径 swf: '__STATIC__/webuploader/Uploader.swf', // 文件接收服务端。 - server: "{:U('File/shard_upload',array('session_id'=>session_id()))}", + server: backEndUrl, // 选择文件的按钮。可选。 // 内部根据当前运行是创建,可能是input元素,也可能是flash. pick: {id:'#picker'}, diff --git a/Application/Admin/View/GameSource/edit.html b/Application/Admin/View/GameSource/edit.html index 9f4d450a8..bc442d7b3 100644 --- a/Application/Admin/View/GameSource/edit.html +++ b/Application/Admin/View/GameSource/edit.html @@ -221,7 +221,8 @@ var userInfo = {userId:"kazaff", md5:""}; //用户会话信息 var chunkSize = 5000 * 1024; //分块大小 var uniqueFileName = null; //文件唯一标识符 var md5Mark = null; -var backEndUrl = "{:U('File/shard_upload',array('session_id'=>session_id()))}"; +// var backEndUrl = "{:U('File/shard_upload',array('session_id'=>session_id()))}"; +var backEndUrl = "http://8.136.139.249:8009/admin.php?s=/File/shard_upload.html"; WebUploader.Uploader.register({ "before-send-file" : "beforeSendFile", "before-send" : "beforeSend", @@ -330,7 +331,7 @@ var uploader = WebUploader.create({ // swf文件路径 swf: '__STATIC__/webuploader/Uploader.swf', // 文件接收服务端。 - server: "{:U('File/shard_upload',array('session_id'=>session_id()))}", + server: backEndUrl, // 选择文件的按钮。可选。 // 内部根据当前运行是创建,可能是input元素,也可能是flash. pick: {id:'#picker'},