dbms_primeidc init...1

This commit is contained in:
최준흠 2025-04-01 16:29:54 +09:00
parent 7bd3c339eb
commit c5b30cb07e

View File

@ -229,16 +229,16 @@ class SiteController extends CommonController
//부가서비스 : 닷디펜더,딥파인더 등, deepfinder_list.php,dotdefender_list.php
//CLI 접속방법 : php index.php SiteController/extraservice/client_code/코드번호
//WEB 접속방법 : http://localhost/SiteController/extraservice/sitekey/dbms.prime-idc.jp/client_code/코드번호
public function extraservice(mixed $addb_code = null,): string
public function extraservice(mixed $adddb_code = null): string
{
if ($addb_code === null) {
$addb_code = $this->getSegments('addb_code');
if ($addb_code === null) {
throw new \Exception("addb_code 값이 정의되지 않았습니다.");
if ($adddb_code === null) {
$adddb_code = $this->getSegments('adddb_code');
if ($adddb_code === null) {
throw new \Exception("adddb_code 값이 정의되지 않았습니다.");
}
}
//segment의 값이 한글인경우 urldecode가 필요
$adddb_code = urldecode($addb_code);
$adddb_code = urldecode($adddb_code);
$service_codes = $this->getAddDbService()->getServiceCodesByCode($adddb_code);
if (!count($service_codes)) {
throw new \Exception("[{$adddb_code}] 값에 해당하는 부가서비스정보가 존재하지 않습니다.");