fix: LazyVarUpdate unset

This commit is contained in:
2021-09-16 03:03:20 +09:00
parent bac7602a1f
commit b4062a5931
2 changed files with 3 additions and 3 deletions
@@ -39,7 +39,7 @@ class BuyRandomUnique extends \sammo\BaseAPI
$db = DB::db(); $db = DB::db();
$inheritStor = KVStorage::getStorage($db, "inheritance_{$userID}"); $inheritStor = KVStorage::getStorage($db, "inheritance_{$userID}");
$previousPoint = $inheritStor->getValue('previous')??0; $previousPoint = ($inheritStor->getValue('previous')??[0, 0])[0];
if($previousPoint < GameConst::$inheritItemRandomPoint){ if($previousPoint < GameConst::$inheritItemRandomPoint){
return '충분한 유산 포인트를 가지고 있지 않습니다.'; return '충분한 유산 포인트를 가지고 있지 않습니다.';
} }
+1 -1
View File
@@ -58,7 +58,7 @@ trait LazyVarUpdater{
} }
if($var === null){ if($var === null){
unset($this->auxVar[$key]); unset($this->raw['auxVar'][$key]);
$this->auxUpdated = true; $this->auxUpdated = true;
return; return;
} }