급하게 도기 코드 수정, 냐섭에서 테스트할 예정
This commit is contained in:
@@ -44,9 +44,13 @@ class che_보물_도기 extends \sammo\BaseItem
|
|||||||
['쌀', 'rice']
|
['쌀', 'rice']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//$db->update('nation', [
|
$nationId = general['nation'];
|
||||||
// $resKey => $db->sqleval('%b + %i', $resKey, $score)
|
|
||||||
//]);
|
if ($nationId != 0) {
|
||||||
|
$db->update('nation', [
|
||||||
|
$resKey => $db->sqleval('%b + %i', $resKey, $score)
|
||||||
|
], 'nation=%i', $nationId);
|
||||||
|
}
|
||||||
|
|
||||||
$score = Util::round($score);
|
$score = Util::round($score);
|
||||||
$scoreText = number_format($score, 0);
|
$scoreText = number_format($score, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user