필요없어진 gennum2 삭제. gennum 재연산

This commit is contained in:
2018-09-15 02:51:33 +09:00
parent fc3487e545
commit 5a70b23db9
4 changed files with 14 additions and 16 deletions
+1 -2
View File
@@ -501,7 +501,7 @@ function postUpdateMonthly() {
// 명성,공헌
$nations = $db->query('SELECT
A.nation,
A.gennum, A.gennum2, A.aux,
A.gennum, A.aux,
round((
round(((A.gold+A.rice)+(select sum(gold+rice) from general where nation=A.nation))/100)
+A.tech
@@ -536,7 +536,6 @@ function postUpdateMonthly() {
$db->update('nation', [
'power'=>$nation['power'],
'gennum2'=>$nation['gennum'],
'aux'=>Json::encode($aux)
], 'nation=%i', $nation['nation']);
}