This commit is contained in:
aozhiwei 2023-08-07 17:09:30 +08:00
parent 2f854cd974
commit 0b0042d423
2 changed files with 13 additions and 2 deletions

View File

@ -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'],

View File

@ -44,7 +44,7 @@ class MarketController extends BaseAuthedController {
),
array(
'page' => $page,
'perPage' => 6,
'perPage' => 8,
'filter' => array(
'data' => $queryData,
'fields' => array(