修改更新商品库存
This commit is contained in:
@@ -58,6 +58,10 @@ class getProductCommand extends HyperfCommand
|
||||
if ($result['count'] > $page * $page_size) {
|
||||
for ($i = 2; $i < $count; $i++) {
|
||||
$result = $prescription->getProd($i, $page_size);
|
||||
if (!isset($result['rows'])){
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach ($result['rows'] as $item) {
|
||||
$concurrent->create(function () use($item) {
|
||||
// 执行入库
|
||||
|
||||
Reference in New Issue
Block a user