...
This commit is contained in:
parent
5918b2a7e3
commit
cc5b053f47
@ -102,7 +102,8 @@ class Shop(object):
|
|||||||
'group': 'Shop',
|
'group': 'Shop',
|
||||||
'url': 'webapp/index.php?c=Shop&a=buyGoodsDirect',
|
'url': 'webapp/index.php?c=Shop&a=buyGoodsDirect',
|
||||||
'params': [
|
'params': [
|
||||||
_common.ReqHead(),
|
['account_id', '', '账号id'],
|
||||||
|
['order_id', '', '订单id'],
|
||||||
['id', 0, '商品唯一id,参见shopGoods表'],
|
['id', 0, '商品唯一id,参见shopGoods表'],
|
||||||
['token_type', '', "选用币种"],
|
['token_type', '', "选用币种"],
|
||||||
['goods_num', 0, '商品数量'],
|
['goods_num', 0, '商品数量'],
|
||||||
|
@ -113,7 +113,7 @@ class FirstTopupController extends BaseAuthedController
|
|||||||
if ($complete == 1) {
|
if ($complete == 1) {
|
||||||
$this->_setV(TN_FIRST_TUPOP_STATUS, 0, 1);
|
$this->_setV(TN_FIRST_TUPOP_STATUS, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_rspData(
|
$this->_rspData(
|
||||||
array(
|
array(
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
@ -152,14 +152,18 @@ class FirstTopupController extends BaseAuthedController
|
|||||||
array('account_id' => myself()->_getAccountId())
|
array('account_id' => myself()->_getAccountId())
|
||||||
);
|
);
|
||||||
|
|
||||||
// 0 未领取 1 可领取 2 已领取
|
$status = [0, 0, 0];
|
||||||
$status = [(int)$row['status1'], (int)$row['status2'], (int)$row['status3']];
|
|
||||||
$time = $row['createtime'];
|
|
||||||
|
|
||||||
for ($i = 0; $i < 3; $i++) {
|
if ($row) {
|
||||||
if ($status[$i] < 2) {
|
// 0 未领取 1 可领取 2 已领取
|
||||||
// 检测是否到了可以领取的时间
|
$status = [(int)$row['status1'], (int)$row['status2'], (int)$row['status3']];
|
||||||
$status[$i] = $this->getStatus($i, $time);
|
$time = $row['createtime'];
|
||||||
|
|
||||||
|
for ($i = 0; $i < 3; $i++) {
|
||||||
|
if ($status[$i] < 2) {
|
||||||
|
// 检测是否到了可以领取的时间
|
||||||
|
$status[$i] = $this->getStatus($i, $time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user