cfmgrv3 init...3
This commit is contained in:
parent
1579fcf617
commit
494765f518
@ -296,12 +296,12 @@ class CommonController extends BaseController
|
|||||||
$this->batchjob_init();
|
$this->batchjob_init();
|
||||||
$entitys = array();
|
$entitys = array();
|
||||||
foreach ($uids as $uid) {
|
foreach ($uids as $uid) {
|
||||||
|
$entity = $this->_model->getEntity($uid);
|
||||||
try {
|
try {
|
||||||
$entity = $this->_model->getEntity($uid);
|
|
||||||
$entity = $this->batchjob_validate($entity);
|
$entity = $this->batchjob_validate($entity);
|
||||||
array_push($entitys, $this->batchjob_process($entity));
|
array_push($entitys, $this->batchjob_process($entity));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Log::add("warning", "{$uid}에 해당하는 다음 이유로 수정되지 않았습니다.\n<br>" . $e->getMessage());
|
Log::add("warning", "{$entity->getTitle()}는 다음과 같은 이유로 수정되지 않았습니다.\n<br>" . $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$message = "총: " . count($entitys) . "개의 수정(Batchjob)을 완료하였습니다.";
|
$message = "총: " . count($entitys) . "개의 수정(Batchjob)을 완료하였습니다.";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user