1
This commit is contained in:
parent
472046c2b0
commit
be97fdd0ff
@ -170,7 +170,6 @@ class AddReward {
|
|||||||
}
|
}
|
||||||
$status = 2;
|
$status = 2;
|
||||||
$active_time = $time * 3600 + time();
|
$active_time = $time * 3600 + time();
|
||||||
error_log($active_time);
|
|
||||||
if ($time == 0) {
|
if ($time == 0) {
|
||||||
$active_time = 0;
|
$active_time = 0;
|
||||||
$status = 1;
|
$status = 1;
|
||||||
|
@ -165,7 +165,6 @@ class ShopController{
|
|||||||
|
|
||||||
public function buyItem()
|
public function buyItem()
|
||||||
{
|
{
|
||||||
error_log(11111111111);
|
|
||||||
$account_id = $_REQUEST['account_id'];
|
$account_id = $_REQUEST['account_id'];
|
||||||
//登录校验
|
//登录校验
|
||||||
$login = loginVerify($account_id, $_REQUEST['session_id']);
|
$login = loginVerify($account_id, $_REQUEST['session_id']);
|
||||||
@ -178,8 +177,6 @@ class ShopController{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$shop_uuid = $_REQUEST['shop_uuid'];
|
$shop_uuid = $_REQUEST['shop_uuid'];
|
||||||
error_log($shop_uuid);
|
|
||||||
error_log($shop_id);
|
|
||||||
$item_id = 0;
|
$item_id = 0;
|
||||||
$item_num = 0;
|
$item_num = 0;
|
||||||
$price = 0;
|
$price = 0;
|
||||||
@ -228,10 +225,6 @@ class ShopController{
|
|||||||
$r->set($shop_uuid, json_encode($user_db));
|
$r->set($shop_uuid, json_encode($user_db));
|
||||||
$r -> pexpire($shop_uuid, 1000 * 3600 * 24);
|
$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();
|
$addreward = new classes\AddReward();
|
||||||
$all_item_list = $addreward->addReward($item_id, $item_num, $account_id, $time);
|
$all_item_list = $addreward->addReward($item_id, $item_num, $account_id, $time);
|
||||||
$coin_num = $addreward->getCoinNum($account_id);
|
$coin_num = $addreward->getCoinNum($account_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user