diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index da5601b..b39b79e 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -2278,8 +2278,8 @@ class Production extends Base return jsonError($rule->getError()); } $info = $this->article_main_obj->where("am_id",$data['id'])->find(); - if(isset($data["code"])){ - $content = $data['code']; + if(isset($data["content"])){ + $content = $data['content']; }else{ $content = $info['content']; } @@ -2644,7 +2644,7 @@ class Production extends Base * @return string 标签名或'no' */ private function determineNextTag($content) { - $tagPattern = '/<(' . implode('|', $this->supportedTags) . ')>/i'; + $tagPattern = '/<(' . implode('|', $this->supportedTags) . ')\b[^>]*>/i'; if (preg_match($tagPattern, $content, $matches)) { return $matches[1]; }