544782275@qq.com 3 anos atrás
pai
commit
1b21b693ac
1 arquivos alterados com 1 adições e 1 exclusões
  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']);
                 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_title'] = $media_info['title'];
                 }else{      //用户