From 362cea871b30f276e63a85d7c4f81aeefc045495 Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Fri, 19 Apr 2019 14:56:04 +0800 Subject: [PATCH] 1 --- webapp/controller/RoleController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index 781c996..3318f5b 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -1,4 +1,4 @@ - $account_id )); if (!$row) { - $ret = execScript('INSERT INTO user(accountid, rank, game_times, win_times, kills, harm, add_HP, alive_time, coin_num, integral, kill_his, alive_time_his, harm_his, add_HP_his) ' . - ' VALUES(:accountid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,);', + $ret = $conn->execScript('INSERT INTO user(accountid, rank, game_times, win_times, kills, harm, add_HP, alive_time, coin_num, integral, kill_his, alive_time_his, harm_his, add_HP_his) ' . + ' VALUES(:accountid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);', array( ':accountid' => $account_id ));