瀏覽代碼

Updated API to match new upload naming

tags/v1.3
Teknikode 7 年之前
父節點
當前提交
d9eb956cbd
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      api/api.php

+ 3
- 3
api/api.php 查看文件

@@ -23,13 +23,13 @@ if (isset($_GET['component']))
{
if (isset($_POST['get_delete_key']))
{
$filename = $results['results']['file']['name'];
$delete_key = generate_code($filename, $CONF);
$name = $results['results']['file']['name'];
$delete_key = generate_code($name, $CONF);
$data = array(
"delete_key" => $delete_key
);
$post_id = $db->update($data, 'uploads', 'filename=?', array($filename));
$post_id = $db->update($data, 'uploads', 'url=?', array($name));
$results['results']['file'] = $results['results']['file'] + $data;
}
array_push($jsonArray, $results);

Loading…
取消
儲存