feat : order
This commit is contained in:
@@ -113,11 +113,14 @@ class OrderGoodStockConsumer extends ConsumerMessage
|
|||||||
return Result::ACK;
|
return Result::ACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(Db::table('sku')->update($this->updateArr))) {
|
$res = Db::table('sku')->upsert($this->updateArr,['id']);
|
||||||
|
if (!$res) {
|
||||||
$this->log->debug('OrderGoodStockConsumer:error:UpdateSkuDataFail:'.json_encode($this->updateArr));
|
$this->log->debug('OrderGoodStockConsumer:error:UpdateSkuDataFail:'.json_encode($this->updateArr));
|
||||||
return Result::ACK;
|
return Result::ACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->log->Debug('OrderGoodStockConsumer:'.json_encode($this->updateArr).':'.json_encode($res));
|
||||||
|
|
||||||
return Result::ACK;
|
return Result::ACK;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->log->error($e->getMessage());
|
$this->log->error($e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user