서버에서 아이콘 주소를 바로 돌려주는 기능 추가

This commit is contained in:
2018-04-15 23:39:41 +09:00
parent 871c99a67a
commit 5a6cd7fb46
+12 -3
View File
@@ -11,18 +11,27 @@ class ServConfig
public static $sharedIconPath = '_tK_sharedIconPath_';
public static $gameImagePath = "_tK_gameImagePath_";
public static function getSharedIconPath() : string
public static function getSharedIconPath(string $filepath) : string
{
if($filepath){
return static::$sharedIconPath."/{$filepath}";
}
return static::$sharedIconPath;
}
public static function getUserIconPath() : string
public static function getUserIconPath(string $filepath) : string
{
if($filepath){
return AppConf::getUserIconPathWeb()."/{$filepath}";
}
return AppConf::getUserIconPathWeb();
}
public static function getGameImagePath() : string
public static function getGameImagePath(string $filepath) : string
{
if($filepath){
return static::$gameImagePath."/{$filepath}";
}
return static::$gameImagePath;
}