作者 郭文星

123

@@ -308,6 +308,7 @@ class Car extends Base @@ -308,6 +308,7 @@ class Car extends Base
308 public function switching_user(){ 308 public function switching_user(){
309 $res=Db::name("user")->where("id",$this->auth->id)->find(); 309 $res=Db::name("user")->where("id",$this->auth->id)->find();
310 if($res){ 310 if($res){
  311 + $res['avatar']=full_image($res['avatar']);
311 return $this->success("请求成功",$res); 312 return $this->success("请求成功",$res);
312 }else{ 313 }else{
313 return $this->error("请求失败"); 314 return $this->error("请求失败");