This commit is contained in:
aozhiwei 2020-03-24 13:44:20 +08:00
parent 472046c2b0
commit be97fdd0ff
2 changed files with 0 additions and 8 deletions

View File

@ -170,7 +170,6 @@ class AddReward {
}
$status = 2;
$active_time = $time * 3600 + time();
error_log($active_time);
if ($time == 0) {
$active_time = 0;
$status = 1;

View File

@ -165,7 +165,6 @@ class ShopController{
public function buyItem()
{
error_log(11111111111);
$account_id = $_REQUEST['account_id'];
//登录校验
$login = loginVerify($account_id, $_REQUEST['session_id']);
@ -178,8 +177,6 @@ class ShopController{
return;
}
$shop_uuid = $_REQUEST['shop_uuid'];
error_log($shop_uuid);
error_log($shop_id);
$item_id = 0;
$item_num = 0;
$price = 0;
@ -228,10 +225,6 @@ class ShopController{
$r->set($shop_uuid, json_encode($user_db));
$r -> pexpire($shop_uuid, 1000 * 3600 * 24);
//增加奖励
error_log(2222222222222222);
error_log($item_id);
error_log($item_num);
error_log($time);
$addreward = new classes\AddReward();
$all_item_list = $addreward->addReward($item_id, $item_num, $account_id, $time);
$coin_num = $addreward->getCoinNum($account_id);