* [misc] enhance zai model by adding 'version' and 'status' attributes to doc markdown output.

This commit is contained in:
sunhao
2025-10-09 13:34:49 +08:00
parent b374ea8823
commit 1cf6fa4ed1
+2 -2
View File
@@ -677,7 +677,7 @@ class zaiModel extends model
$markdown['content'] = implode("\n", $content);
$markdown['attrs'] = array('product' => $doc->product, 'lib' => $doc->lib, 'module' => $doc->module, 'project' => $doc->project, 'execution' => $doc->execution, 'type' => $doc->type);
$markdown['attrs'] = array('product' => $doc->product, 'lib' => $doc->lib, 'module' => $doc->module, 'project' => $doc->project, 'execution' => $doc->execution, 'type' => $doc->type, 'version' => $doc->version);
return $markdown;
}
@@ -769,7 +769,7 @@ class zaiModel extends model
$markdown['content'] = implode("\n", $content);
$markdown['attrs'] = array('product' => $feedback->product, 'module' => $feedback->module, 'type' => $feedback->type);
$markdown['attrs'] = array('product' => $feedback->product, 'module' => $feedback->module, 'type' => $feedback->type, 'status' => $feedback->status, 'pri' => $feedback->pri);
return $markdown;
}
}