作者 王智

daima

@@ -156,7 +156,7 @@ class Common extends Api @@ -156,7 +156,7 @@ class Common extends Api
156 $attachment->storage = 'qiniu'; 156 $attachment->storage = 'qiniu';
157 $attachment->save(); 157 $attachment->save();
158 158
159 - $this->success("上传成功", cdnurl($url)); 159 + $this->success("上传成功", $url);
160 } else { 160 } else {
161 $this->error('上传失败'); 161 $this->error('上传失败');
162 } 162 }
@@ -217,7 +217,7 @@ class Common extends Api @@ -217,7 +217,7 @@ class Common extends Api
217 217
218 public function open() 218 public function open()
219 { 219 {
220 - $res=Db::name('open')->order('id desc')->limit(1)->find();  
221 - $this->success('成功',cdnurl($res['image'])); 220 + $res = Db::name('open')->order('id desc')->limit(1)->find();
  221 + $this->success('成功', cdnurl($res['image']));
222 } 222 }
223 } 223 }