fix
This commit is contained in:
parent
6affe6be19
commit
a1b92f6758
@ -113,6 +113,7 @@ class RechargeController
|
|||||||
$response = json_decode($rsp, true);
|
$response = json_decode($rsp, true);
|
||||||
$diamonds = $response['diamond'];
|
$diamonds = $response['diamond'];
|
||||||
$diamond_num = -1;
|
$diamond_num = -1;
|
||||||
|
$diamond_present = 0;
|
||||||
if ($diamonds > 0) {
|
if ($diamonds > 0) {
|
||||||
$userrow = $conn->execQueryOne(
|
$userrow = $conn->execQueryOne(
|
||||||
'SELECT diamond_num, free_diamond FROM user WHERE accountid=:accountid;',
|
'SELECT diamond_num, free_diamond FROM user WHERE accountid=:accountid;',
|
||||||
@ -125,7 +126,6 @@ class RechargeController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$diamond_present = 0;
|
|
||||||
$shopgoods_conf = metatable\getShopGoodsConf();
|
$shopgoods_conf = metatable\getShopGoodsConf();
|
||||||
$goodsid = 0;
|
$goodsid = 0;
|
||||||
if ($shopgoods_conf) {
|
if ($shopgoods_conf) {
|
||||||
@ -142,7 +142,7 @@ class RechargeController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$rechargerow = $conn->execQueryOne(
|
$rechargerow = $conn->execQueryOne(
|
||||||
'SELECT first_data FROM recharge WHERE accountid=:accountid;',
|
'SELECT * FROM recharge WHERE accountid=:accountid;',
|
||||||
array(
|
array(
|
||||||
':accountid' => $account_id
|
':accountid' => $account_id
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user