From 1cf6fa4ed1f4aa2c6150d8e4dacd504771606e83 Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 10 Sep 2025 15:47:54 +0800 Subject: [PATCH] * [misc] enhance zai model by adding 'version' and 'status' attributes to doc markdown output. --- module/zai/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/zai/model.php b/module/zai/model.php index 5ec3f38761..8865cda019 100644 --- a/module/zai/model.php +++ b/module/zai/model.php @@ -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; } }