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