From 15aaf04093926cc0b942e549db96ec6108d34411 Mon Sep 17 00:00:00 2001 From: sarsntony Date: Fri, 25 Feb 2022 20:09:03 -0800 Subject: [PATCH] =?UTF-8?q?=EA=B8=89=ED=95=98=EA=B2=8C=20=EB=8F=84?= =?UTF-8?q?=EA=B8=B0=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95,=20?= =?UTF-8?q?=EB=83=90=EC=84=AD=EC=97=90=EC=84=9C=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=ED=95=A0=20=EC=98=88=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_보물_도기.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hwe/sammo/ActionItem/che_보물_도기.php b/hwe/sammo/ActionItem/che_보물_도기.php index fbe0ad87..476ab082 100644 --- a/hwe/sammo/ActionItem/che_보물_도기.php +++ b/hwe/sammo/ActionItem/che_보물_도기.php @@ -44,9 +44,13 @@ class che_보물_도기 extends \sammo\BaseItem ['쌀', 'rice'] ]); - //$db->update('nation', [ - // $resKey => $db->sqleval('%b + %i', $resKey, $score) - //]); + $nationId = general['nation']; + + if ($nationId != 0) { + $db->update('nation', [ + $resKey => $db->sqleval('%b + %i', $resKey, $score) + ], 'nation=%i', $nationId); + } $score = Util::round($score); $scoreText = number_format($score, 0);