1
This commit is contained in:
parent
c6d769b824
commit
a6c23463ce
@ -29,16 +29,16 @@ class ShopBuyRecord extends BaseModel {
|
|||||||
'account_id' => myself()->_getAccountId(),
|
'account_id' => myself()->_getAccountId(),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
return array_map(function($val) {
|
return array_map(function($row) {
|
||||||
$nowDaySeconds = myself()->_getNowDaySeconds();
|
$nowDaySeconds = myself()->_getNowDaySeconds();
|
||||||
if (!($row['last_buy_time'] >= $nowDaySeconds && $row['last_buy_time'] <= $nowDaySeconds)) {
|
if (!($row['last_buy_time'] >= $nowDaySeconds && $row['last_buy_time'] <= $nowDaySeconds)) {
|
||||||
$val['this_day_buy_times'] = 0;
|
$row['this_day_buy_times'] = 0;
|
||||||
}
|
}
|
||||||
$mondaySeconds = myself()->_getMondaySeconds();
|
$mondaySeconds = myself()->_getMondaySeconds();
|
||||||
if (!($row['last_buy_time'] >= $mondaySeconds && $row['last_buy_time'] <= $mondaySeconds)) {
|
if (!($row['last_buy_time'] >= $mondaySeconds && $row['last_buy_time'] <= $mondaySeconds)) {
|
||||||
$val['this_week_buy_times'] = 0;
|
$row['this_week_buy_times'] = 0;
|
||||||
}
|
}
|
||||||
return $val;
|
return $row;
|
||||||
}, $rows);
|
}, $rows);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,8 +46,8 @@ class ShopBuyRecord extends BaseModel {
|
|||||||
{
|
{
|
||||||
$rows = self::all();
|
$rows = self::all();
|
||||||
$buyRecordHash = array();
|
$buyRecordHash = array();
|
||||||
array_walk($rows, function ($val) use(&$buyRecordHash) {
|
array_walk($rows, function ($row) use(&$buyRecordHash) {
|
||||||
$buyRecordHash[$val['item_id']] = $val;
|
$buyRecordHash[$row['item_id']] = $row;
|
||||||
});
|
});
|
||||||
return $buyRecordHash;
|
return $buyRecordHash;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ class PropertyChgService extends BaseService {
|
|||||||
|
|
||||||
private function internalAddChg($name)
|
private function internalAddChg($name)
|
||||||
{
|
{
|
||||||
foreach ($chgLlist as $item) {
|
foreach ($this->chgLlist as $item) {
|
||||||
if ($item == $name) {
|
if ($item == $name) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user