feat : spu
This commit is contained in:
@@ -104,8 +104,8 @@ class GoodCache
|
||||
$stockKey = ApiRedisKey::goodStockKey($this->cycleId,$this->kitchenId);
|
||||
foreach ($this->stockArr as $one) {
|
||||
$this->redis->zAdd($stockKey,$one['stock'],$one['id']);
|
||||
$this->redis->expire($stockKey,$this->expireTime);
|
||||
}
|
||||
$this->redis->expire($stockKey,$this->expireTime);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ class GoodCache
|
||||
}
|
||||
|
||||
if (!empty($stockArr)) {
|
||||
$this->stockArr = $stockArr;
|
||||
$this->stockArr = array_merge($this->stockArr,$stockArr);
|
||||
}
|
||||
|
||||
foreach ($list as &$item) {
|
||||
|
||||
Reference in New Issue
Block a user