diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index 3fd0b01..5022779 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -113,6 +113,7 @@ class RechargeController $response = json_decode($rsp, true); $diamonds = $response['diamond']; $diamond_num = -1; + $diamond_present = 0; if ($diamonds > 0) { $userrow = $conn->execQueryOne( 'SELECT diamond_num, free_diamond FROM user WHERE accountid=:accountid;', @@ -125,7 +126,6 @@ class RechargeController return; } - $diamond_present = 0; $shopgoods_conf = metatable\getShopGoodsConf(); $goodsid = 0; if ($shopgoods_conf) { @@ -142,7 +142,7 @@ class RechargeController } $rechargerow = $conn->execQueryOne( - 'SELECT first_data FROM recharge WHERE accountid=:accountid;', + 'SELECT * FROM recharge WHERE accountid=:accountid;', array( ':accountid' => $account_id )