failed()) { throw $res->throw(); } $data = $res->json(); if (data_get($data, static::RESULT_CODE) !== static::RESULT_CODE_SUCCESS) { Log::error("HT RESPONSE ERROR"); Log::error($data); throw new AppCommonException('HT API 失敗'); } return data_get($data, static::FIELD_DATA, []); } catch (Exception $e) { Log::error("HelloTechno API エラー URL:${url}]"); throw $e; } } }