Browse Source

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

visuddhinanda 2 years ago
parent
commit
e4b352d2fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/CorpusController.php

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

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