From d75cd92a8c79fde8ea7bad8762ec41f095818fc4 Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Tue, 4 Jun 2019 11:24:03 +0800 Subject: [PATCH] 1 --- webapp/controller/RoleController.class.php | 13 ++++++++++--- webapp/controller/SkinController.class.php | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index 369acc0..716d761 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -161,12 +161,19 @@ class RoleController{ $coin_num = $_REQUEST['coin_num']; //金币 $integral = $_REQUEST['score']; //积分 + error_log($_REQUEST['account_id']); + error_log($_REQUEST['team_status']); //是否是组队状态 + error_log($_REQUEST['snipe_kill']); //狙击枪击杀数 + error_log($_REQUEST['rifle_kill']); //步枪击杀数 + error_log($_REQUEST['pistol_kill']); //手枪击杀数 + error_log($_REQUEST['submachine_kill']);//冲锋枪击杀数 + $row = $conn->execQueryOne('SELECT * FROM user WHERE accountid=:accountid;', array( ':accountid' => $account_id )); if (!$row) { - phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); + phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家1'); return; } if ($kill_his < $row['kill_his']) { @@ -266,9 +273,9 @@ class RoleController{ $nowTime = phpcommon\getdayseconds(time()); $start_time = $array[0][0] * 3600 + $array[0][1] * 60 + $nowTime; $end_time = $array[1][0] * 3600 + $array[1][1] * 60 + $nowTime; - if (time() >= $start_time && time() < $start_time) { + //if (time() >= $start_time && time() < $start_time) { $quest->triggerQuest(QUEST_ACTIVITY_GAME, 3, 1, $account_id); - } + //} echo json_encode(array( 'errcode' => 0, 'errmsg' => '', diff --git a/webapp/controller/SkinController.class.php b/webapp/controller/SkinController.class.php index 0aa4631..6142676 100644 --- a/webapp/controller/SkinController.class.php +++ b/webapp/controller/SkinController.class.php @@ -282,7 +282,7 @@ class SkinController{ if ($row['skin_status'] == 0) { $skin_status = 0; } - $ret = $conn->execScript('UPDATE skin SET fragment_num=:fragment_num ,skin_status=:skin_status, active_time=0, skin_experience_type=, modify_time=:modify_time ' . + $ret = $conn->execScript('UPDATE skin SET fragment_num=:fragment_num ,skin_status=:skin_status, active_time=0, skin_experience_type=0, modify_time=:modify_time ' . ' WHERE accountid = :account_id AND skin_id = :skin_id;', array( ':account_id' => $account_id,