代码拉取完成,页面将自动刷新
<?php
ob_start();
header('Content-Type: text/html;charset=utf-8');
/*
此文件只负责将数据表中文件上传进度更新为100%
向数据库添加新记录在 ajax_create_fid.php 文件中处理
如果服务器不存在此文件,则添加一条记录,百分比为100%
如果服务器已存在相同文件,则将文件上传百分比更新为100%
*/
require '../../vendor/autoload.php';
use database\DBFile;
use biz\up6_biz_event;
use utils\WebBase;
use utils\PathTool;
$wb = new WebBase();
$md5 = $wb->queryString("md5");
$uid = $wb->reqString("uid");
$id = $wb->queryString("id");
$pid = $wb->queryString("pid");
$cbk = $wb->queryString("callback");
$cover = $wb->reqInt("cover");
$nameLoc = $wb->queryString("nameLoc");
$nameLoc = PathTool::urldecode_path($nameLoc);
$ret = "$cbk(0)";
//md5和uid不能为空
if ( strlen($id) > 0 )
{
$db = new DBFile();
$db->complete($id);
//覆盖同名文件-更新同名文件状态
if($cover == 1) $db->del($pid, $nameLoc, $uid, $id);
up6_biz_event::file_post_complete($id);
$ret = "$cbk(1)";
}
//返回查询结果
echo $ret;
header('Content-Length: ' . ob_get_length());
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。