From 5a5bd34e5d8a42447f7d451b88b2a6857131fe20 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 6 Apr 2021 11:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/GameSource/add.html | 6 ++++-- Application/Admin/View/GameSource/edit.html | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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'},