refac: inheritance_result로 데이터 이관
This commit is contained in:
@@ -334,11 +334,19 @@ class InheritancePointManager
|
||||
$inheritStor->setValue($key, [$point, $aux]);
|
||||
}
|
||||
|
||||
$oldInheritStor = KVStorage::getStorage(DB::db(), "inheritance_result");
|
||||
$db = DB::db();
|
||||
$serverID = UniqueConst::$serverID;
|
||||
$year = $gameStor->year;
|
||||
$month = $gameStor->month;
|
||||
$oldInheritStor->setValue("{$serverID}_{$ownerID}_{$general->getID()}_{$year}_{$month}", $inheritStor->getAll(true));
|
||||
|
||||
$db->insert('inheritance_result', [
|
||||
'owner'=>$ownerID,
|
||||
'server'=>$serverID,
|
||||
'general_id'=>$general->getID(),
|
||||
'year'=>$year,
|
||||
'month'=>$month,
|
||||
'value'=>$inheritStor->getAll(true)
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user