作者 lyh

gx

@@ -315,7 +315,7 @@ class ImageController extends Controller @@ -315,7 +315,7 @@ class ImageController extends Controller
315 */ 315 */
316 public function setUrl(){ 316 public function setUrl(){
317 if(!isset($this->param['image_type'])){ 317 if(!isset($this->param['image_type'])){
318 - $this->response('参数错误',Code::USER_ERROR); 318 + $this->param['image_type'] = 1;
319 } 319 }
320 if(isset($this->param['refer_type']) && $this->param['refer_type'] == 1){ 320 if(isset($this->param['refer_type']) && $this->param['refer_type'] == 1){
321 $this->path = $this->uploads['path_a'].'/'.$this->image_type[$this->param['image_type']].'/'.date('Y-m'); 321 $this->path = $this->uploads['path_a'].'/'.$this->image_type[$this->param['image_type']].'/'.date('Y-m');