cfmgrv4 init...4
This commit is contained in:
parent
3867476ec0
commit
4d743fbc97
@ -89,15 +89,16 @@ class AccountService extends CloudflareService
|
||||
$entitys = [];
|
||||
try {
|
||||
$results = $this->reload_procedure("accounts");
|
||||
$total = count($results);
|
||||
$total = count($results);
|
||||
if ($total > 0) {
|
||||
$cnt = 1;
|
||||
foreach ($results as $result) {
|
||||
if (!is_object($result) || get_class($result) !== 'stdClass') {
|
||||
throw new \Exception("Account: result is not a stdClass:\n" . var_export($result, true) . "\n");
|
||||
log_message("error", "Account: result is not a stdClass:\n" . var_export($result, true) . "\n");
|
||||
continue;
|
||||
}
|
||||
$formDatas = $this->getArrayByResult($result);
|
||||
$entity = $this->getModel()->modify(new AccountEntity(), $formDatas);
|
||||
$entity = $this->getModel()->modify(new AccountEntity(), $formDatas);
|
||||
log_message("debug", "{$cnt}/{$total} => {$entity->getTitle()} Account 처리,[{$this->getMySocket()::$_request}]");
|
||||
$entitys[$entity->getPK()] = $entity;
|
||||
$cnt++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user