From f66f39b768dd67eca2f0bbf6074b0eef1d9387e9 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Fri, 16 Sep 2022 19:45:04 +0800 Subject: [PATCH] 1 --- webapp/controller/FragmentController.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/controller/FragmentController.class.php b/webapp/controller/FragmentController.class.php index d4a45886..e8f21d10 100644 --- a/webapp/controller/FragmentController.class.php +++ b/webapp/controller/FragmentController.class.php @@ -114,6 +114,7 @@ class FragmentController extends BaseAuthedController return ; } $token_id_arr = array(); + array_push($token_id_arr,$fragmentDbSpecial['token_id']); foreach ($unique_id_arr as $val){ $fragmentDb = Fragment::getFragmentByIdx($val); if (!$fragmentDb){ @@ -147,6 +148,7 @@ class FragmentController extends BaseAuthedController $propertyChgService = new services\PropertyChgService(); $propertyChgService->addUserChg(); $propertyChgService->addFragment(); + $propertyChgService->addHeroChg(); $this->_rspData(array( 'property_chg' => $propertyChgService->toDto(), 'item_id' => $itemMeta['id'] @@ -190,6 +192,7 @@ class FragmentController extends BaseAuthedController $propertyChgService = new services\PropertyChgService(); $propertyChgService->addUserChg(); $propertyChgService->addFragment(); + $propertyChgService->addHeroChg(); $this->_rspData(array( 'property_chg' => $propertyChgService->toDto(), 'item_id' => $itemMeta['id'] @@ -216,6 +219,7 @@ class FragmentController extends BaseAuthedController return ; } $token_id_arr = array(); + array_push($token_id_arr,$fragmentDbSpecial['token_id']); foreach ($unique_id_arr as $val){ $fragmentDb = Fragment::getFragmentByIdx($val); if (!$fragmentDb){ @@ -249,6 +253,7 @@ class FragmentController extends BaseAuthedController $propertyChgService = new services\PropertyChgService(); $propertyChgService->addUserChg(); $propertyChgService->addFragment(); + $propertyChgService->addGunChg(); $this->_rspData(array( 'property_chg' => $propertyChgService->toDto(), 'item_id' => $itemMeta['id'] @@ -293,6 +298,7 @@ class FragmentController extends BaseAuthedController $propertyChgService = new services\PropertyChgService(); $propertyChgService->addUserChg(); $propertyChgService->addFragment(); + $propertyChgService->addGunChg(); $this->_rspData(array( 'property_chg' => $propertyChgService->toDto(), 'item_id' => $itemMeta['id']