From 647c2439e3c3394d20f9127bd990838cf1d49cba Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 25 Jun 2022 12:22:25 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9C=A0=EC=82=B0=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=A1=9C=EA=B7=B8=EB=A5=BC=20=EB=8D=94=20?= =?UTF-8?q?=EA=B0=80=EC=A0=B8=EC=98=AC=20=EC=88=98=20=EC=9E=88=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/InheritAction/GetMoreLog.php | 40 ++ hwe/ts/PageInheritPoint.vue | 468 +++++++++++---------- hwe/ts/SammoAPI.ts | 5 +- hwe/ts/defs/API/InheritAction.ts | 31 +- hwe/v_inheritPoint.php | 36 +- 5 files changed, 325 insertions(+), 255 deletions(-) create mode 100644 hwe/sammo/API/InheritAction/GetMoreLog.php diff --git a/hwe/sammo/API/InheritAction/GetMoreLog.php b/hwe/sammo/API/InheritAction/GetMoreLog.php new file mode 100644 index 00000000..70466410 --- /dev/null +++ b/hwe/sammo/API/InheritAction/GetMoreLog.php @@ -0,0 +1,40 @@ +args); + $v->rule('integer', 'lastID'); + if (!$v->validate()) { + return $v->errorStr(); + } + $this->args['lastID'] = Util::toInt($this->args['lastID']); + return null; + } + function getRequiredSessionMode(): int + { + return static::REQ_GAME_LOGIN | static::REQ_READ_ONLY; + } + + function launch(Session $session, ?DateTimeInterface $modifiedSince, ?string $reqEtag) + { + $userID = $session->userID; + $lastID = $this->args['lastID']; + $db = DB::db(); + $lastInheritPointLogs = $db->query('SELECT id, server_id, year, month, date, text FROM user_record WHERE log_type = %s AND `user_id` = %i AND id < %i ORDER BY id desc LIMIT 30', "inheritPoint", $userID, $lastID); + + return [ + 'result'=> true, + 'log' => $lastInheritPointLogs, + ]; + } +} diff --git a/hwe/ts/PageInheritPoint.vue b/hwe/ts/PageInheritPoint.vue index e97ef8f2..36a2195d 100644 --- a/hwe/ts/PageInheritPoint.vue +++ b/hwe/ts/PageInheritPoint.vue @@ -70,7 +70,7 @@
유니크 경매