浏览代码

if($info->content_type==='json') 改为 $row

visuddhinanda 2 年之前
父节点
当前提交
e4b352d2fd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/CorpusController.php

+ 1 - 1
app/Http/Controllers/CorpusController.php

@@ -663,7 +663,7 @@ class CorpusController extends Controller
                             // 传过来的数据一定有一个原文channel
                             // 传过来的数据一定有一个原文channel
                             //
                             //
                             if($mode !== "read"){
                             if($mode !== "read"){
-                                if($info->content_type==='json'){
+                                if($row->content_type==='json'){
                                     $newSent['channel']['type'] = "wbw";
                                     $newSent['channel']['type'] = "wbw";
                                     if(isset($this->wbwChannels[0])){
                                     if(isset($this->wbwChannels[0])){
                                         $newSent['channel']['name'] = $indexChannel[$this->wbwChannels[0]]->name;
                                         $newSent['channel']['name'] = $indexChannel[$this->wbwChannels[0]]->name;