JSON -> Json

- 대체 왜 어떤 파일에는 에러가 나지 않았는가
This commit is contained in:
2024-02-20 18:45:40 +09:00
parent 83abf44380
commit faff3f4e6a
8 changed files with 32 additions and 29 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ class Join extends \sammo\BaseAPI
return "잘못된 접근입니다!!!";
}
$memberPenalty = JSON::decode($member['penalty'] ?? "{}");
$memberPenalty = Json::decode($member['penalty'] ?? "{}");
$penalty = array_merge($memberPenalty['any'] ?? [], $memberPenalty[DB::prefix()] ?? []);
$db = DB::db();
+1 -1
View File
@@ -172,7 +172,7 @@ class SendMessage extends \sammo\BaseAPI
return '장수가 없습니다.';
}
$penalty = JSON::decode($me['penalty'] ?? '{}');
$penalty = Json::decode($me['penalty'] ?? '{}');
$limitState = checkLimit($me['refresh_score']);
if ($limitState >= 2) {
+1 -1
View File
@@ -313,7 +313,7 @@ class GeneralList extends \sammo\BaseAPI
foreach ($rawGeneralList as $rawGeneral) {
//General 생성?
if (key_exists('aux', $rawGeneral)) {
$rawGeneral['aux'] = \sammo\JSON::decode($rawGeneral['aux']);
$rawGeneral['aux'] = \sammo\Json::decode($rawGeneral['aux']);
}
$item = [];