This commit is contained in:
aozhiwei 2020-03-20 11:23:35 +08:00
parent 92835c2152
commit a8a10e13b6
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,10 @@ import datetime
import redis import redis
import os import os
import app if f7.isOnlineEnv():
import game2004_rankserver as app
else:
import app
def _updateRank_cmd(debug_info): def _updateRank_cmd(debug_info):
app.fullUpdateRank() app.fullUpdateRank()

View File

@ -289,12 +289,11 @@ class BagController{
return; return;
} }
$exchange_ret = $conn->execScript('UPDATE bag SET status=:status, color_id=0, modify_time=:modify_time ' . $exchange_ret = $conn->execScript('UPDATE bag SET color_id=0, modify_time=:modify_time ' .
' WHERE accountid = :account_id AND id = :id;', ' WHERE accountid = :account_id AND id = :id;',
array( array(
':account_id' => $account_id, ':account_id' => $account_id,
':id' => $item_id, ':id' => $item_id,
':status' => $status,
':modify_time' => time() ':modify_time' => time()
)); ));
if(!$exchange_ret){ if(!$exchange_ret){