...
|
...
|
@@ -156,7 +156,7 @@ class Common extends Api |
|
|
$attachment->storage = 'qiniu';
|
|
|
$attachment->save();
|
|
|
|
|
|
$this->success("上传成功", cdnurl($url));
|
|
|
$this->success("上传成功", $url);
|
|
|
} else {
|
|
|
$this->error('上传失败');
|
|
|
}
|
...
|
...
|
@@ -217,7 +217,7 @@ class Common extends Api |
|
|
|
|
|
public function open()
|
|
|
{
|
|
|
$res=Db::name('open')->order('id desc')->limit(1)->find();
|
|
|
$this->success('成功',cdnurl($res['image']));
|
|
|
$res = Db::name('open')->order('id desc')->limit(1)->find();
|
|
|
$this->success('成功', cdnurl($res['image']));
|
|
|
}
|
|
|
} |
...
|
...
|
|