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