From bdf9bc0140f1e3e16134f11ba967b6eabd716652 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Fri, 19 Apr 2024 15:40:10 +0800 Subject: [PATCH] * zin: modify the thinkStepDetail of thinknode wg. --- lib/zin/wg/thinknode/v1.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/zin/wg/thinknode/v1.php b/lib/zin/wg/thinknode/v1.php index 9479422939..e077d49399 100644 --- a/lib/zin/wg/thinknode/v1.php +++ b/lib/zin/wg/thinknode/v1.php @@ -20,20 +20,20 @@ class thinkNode extends wg set::type($item->type), set::title($item->title), set::desc($item->desc), + set::item($item), ); } else { $item->options = null; - if($item == 'node') return thinkNode(set($this->getRestProps())); - if($type == 'transition') return thinkTransition(set($this->getRestProps())); - if($type == 'question') + if($item->type == 'question') { $questionType = zget($item, 'questionType', 'radio'); if($questionType == 'radio') return thinkRadio(set($this->getRestProps())); if($questionType == 'checkbox') return thinkCheckbox(set($this->getRestProps())); } + return thinkStep(set($this->getRestProps())); } }