1
This commit is contained in:
parent
4d8f32f0a4
commit
bd9a512db6
@ -299,6 +299,7 @@ class QuestController{
|
|||||||
phpcommon\sendError(ERR_USER_BASE + 2, '没有这个任务');
|
phpcommon\sendError(ERR_USER_BASE + 2, '没有这个任务');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$item_list = array();
|
||||||
if ($row['quest_state'] == 1) {
|
if ($row['quest_state'] == 1) {
|
||||||
$ret = $conn->execScript('UPDATE quest SET quest_state=:quest_state ' .
|
$ret = $conn->execScript('UPDATE quest SET quest_state=:quest_state ' .
|
||||||
' WHERE accountid=:accountid AND quest_id =:quest_id AND quest_type=:quest_type;',
|
' WHERE accountid=:accountid AND quest_id =:quest_id AND quest_type=:quest_type;',
|
||||||
@ -413,7 +414,8 @@ class QuestController{
|
|||||||
}
|
}
|
||||||
echo json_encode(array(
|
echo json_encode(array(
|
||||||
'errcode' => 0,
|
'errcode' => 0,
|
||||||
'errmsg' => ''
|
'errmsg' => '',
|
||||||
|
'item_list' => $item_list
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user