From dfc01f69880b2c979d4fe355917388c5b0aaedea Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 15 Sep 2022 14:41:47 +0800 Subject: [PATCH] 1 --- webapp/services/PropertyChgService.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webapp/services/PropertyChgService.php b/webapp/services/PropertyChgService.php index 1df6173b..4fbf44a8 100644 --- a/webapp/services/PropertyChgService.php +++ b/webapp/services/PropertyChgService.php @@ -48,10 +48,13 @@ class PropertyChgService extends BaseService { public function toDto() { - return array( - 'user_info' => $this->userChg ? User::info(myself()->_getOrmUserInfo()) : null, + $data = array( 'container_chg' => $this->chgList ); + if ($this->userChg) { + $data['user_info'] = User::info(myself()->_getOrmUserInfo()); + } + return $data; } private function internalAddChg($name)