3 Star 16 Fork 5

泽优软件 / up6-php

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
f_complete.php 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
xfl 提交于 2024-06-15 17:05 +08:00 . uid类型改为string类型
<?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());
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/xproer/up6-php.git
git@gitee.com:xproer/up6-php.git
xproer
up6-php
up6-php
master

搜索帮助