1
This commit is contained in:
parent
2f854cd974
commit
0b0042d423
@ -38,7 +38,7 @@ class MallController extends BaseAuthedController {
|
||||
),
|
||||
array(
|
||||
'page' => $page,
|
||||
'perPage' => 6,
|
||||
'perPage' => 8,
|
||||
'filter' => array(
|
||||
'data' => $queryData,
|
||||
'fields' => array(
|
||||
@ -48,6 +48,17 @@ class MallController extends BaseAuthedController {
|
||||
'handle' => function ($row) use(&$out) {
|
||||
$cancelCd = -1;
|
||||
$modifyCd = -1;
|
||||
if ($row['seller'] == myself()->_getAccountId() &&
|
||||
$row['seller_address'] == myself()->_getAddress()) {
|
||||
$cancelCd = myself()->_getNowTime() - $row['last_buy_time'];
|
||||
if ($cancelCd > 3600 * 24) {
|
||||
$cancelCd = 0;
|
||||
}
|
||||
$modifyCd = myself()->_getNowTime() - $row['last_modify_price_time'];
|
||||
if ($modifyCd > 60 * 10) {
|
||||
$modifyCd = 0;
|
||||
}
|
||||
}
|
||||
array_push($out['rows'],
|
||||
array(
|
||||
'goods_uuid' => $row['goods_uuid'],
|
||||
|
@ -44,7 +44,7 @@ class MarketController extends BaseAuthedController {
|
||||
),
|
||||
array(
|
||||
'page' => $page,
|
||||
'perPage' => 6,
|
||||
'perPage' => 8,
|
||||
'filter' => array(
|
||||
'data' => $queryData,
|
||||
'fields' => array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user