소스 검색

Update api.php

tags/6.2.2
tianya 1 년 전
부모
커밋
735b097d54
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +5
    -5
      src/admin/api.php

+ 5
- 5
src/admin/api.php 파일 보기

@@ -275,14 +275,14 @@ if ($action === 'is_need_check_code') {
$f->filename = preg_replace('/^\/admin/', $curDir, $f->filename);
$srcFile = $backupVerPath.$f->filename;
$dstFile = str_replace(array("\\", "//"), '/', DEDEROOT.$f->filename);
var_dump_cli('files','srcFile',$srcFile,'dstFile',$dstFile);
// $rs = @copy($srcFile, $dstFile);
// if($rs) {
// unlink($srcFile);
// }
$rs = @copy($srcFile, $dstFile);
if($rs) {
unlink($srcFile);
}
}
$row[$k]->ispatched = true;
SetCache('update', 'vers', $row);
RmRecurse($backupVerPath);
echo json_encode(array(
"code" => 0,
"msg" => "正在应用{$ver->ver}的版本补丁文件",


불러오는 중...
취소
저장