ソースを参照

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}的版本补丁文件",


読み込み中…
キャンセル
保存