@@ -248,10 +248,10 @@ router.post('/score', function (req, res) {
...
@@ -248,10 +248,10 @@ router.post('/score', function (req, res) {
paramB['athletic_draw']=1
paramB['athletic_draw']=1
}
}
varqueryFirsrWinSql=`select count(*) from battle_history where type ='athletic' and ( (usernameA = '${winner}' AND userscorea > userscoreb ) OR (usernameB = '${winner}' AND userscoreb > userscorea) ) and start_time > '${today}' `
varqueryFirsrWinSql=`select count(*) from battle_history where type ='athletic' and ( (usernameA = ? AND userscorea > userscoreb ) OR (usernameB = ? AND userscoreb > userscorea) ) and start_time > ? `