dever 4 年之前
父节点
当前提交
3cc34ca772
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/collection/lib/Content.php

+ 3 - 3
app/collection/lib/Content.php

@@ -23,9 +23,9 @@ class Content
                     if ($pic) {
                         $update['pic'] = Dever::load('upload/view')->get($pic, 'c', 1);
                     } else {
-                        $pic = Dever::param('text_c_0_i_pic', $data);
-                        if ($pic) {
-                            $update['pic'] = Dever::load('upload/view')->get($pic, 'c', 1);
+                        $text = Dever::param('text', $data);
+                        if ($text && isset($text[0]['pic']) && $text[0]['pic']) {
+                            $update['pic'] = Dever::load('upload/view')->get($text[0]['pic'], 'c', 1);
                         }
                     }
                 }