...
|
...
|
@@ -152,7 +152,7 @@ class PostController extends RestBaseController |
|
|
$findFile = Db::name("asset")->where('file_md5', $fileMd5)->where('file_sha1', $fileSha1)->find();
|
|
|
|
|
|
if (!empty($findFile)) {
|
|
|
$this->success("上传成功!", ['url' => cmf_get_image_preview_url($findFile['file_path']), 'filename' => $findFile['filename']]);
|
|
|
$this->success("上传成功!", ['url' => cmf_get_asset_url($findFile['file_path']), 'filename' => $findFile['filename']]);
|
|
|
}
|
|
|
$info = $info->move(ROOT_PATH . 'public' . DS . 'upload');
|
|
|
if ($info) {
|
...
|
...
|
|