This commit is contained in:
hujiabin 2022-09-16 19:45:04 +08:00
parent 3ba4b38a8f
commit f66f39b768

View File

@ -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']