544782275@qq.com 3 years ago
parent
commit
1b21b693ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Consult.php

+ 1 - 1
application/api/controller/Consult.php

@@ -121,7 +121,7 @@ class Consult extends Base
                 $value['image'] = image_path($value['image']);
                 $value['image'] = image_path($value['image']);
                 if($value['type'] == 1){     //后台媒体
                 if($value['type'] == 1){     //后台媒体
                     //媒体信息
                     //媒体信息
-                    $media_info = Db::name('store_media')->field('logo,title')->where('id',$value['user_id'])->find();
+                    $media_info = Db::name('store_media')->field('logo,title')->where('id',$value['media_id'])->find();
                     $value['media_logo'] = $media_info['logo'];
                     $value['media_logo'] = $media_info['logo'];
                     $value['media_title'] = $media_info['title'];
                     $value['media_title'] = $media_info['title'];
                 }else{      //用户
                 }else{      //用户