diff --git a/crmeb/jobs/SendGoodsCodeJob.php b/crmeb/jobs/SendGoodsCodeJob.php index 18f4860a..749f33b1 100644 --- a/crmeb/jobs/SendGoodsCodeJob.php +++ b/crmeb/jobs/SendGoodsCodeJob.php @@ -58,16 +58,17 @@ class SendGoodsCodeJob implements JobInterface 'street_code' => $addressInfo[3] ?? '', 'village_code' => $addressInfo[4] ?? '', 'brigade_id' => $addressInfo[5] ?? 0, + 'product_id' => 0, + 'product_price' => 0, + 'total_price' => $order['pay_price'] ?? 0, + 'product_num' => $order['total_num'] ?? 0, 'status' => 1, 'create_time' => date('Y-m-d H:i:s') ]; //商品信息 $productInfo = Db::name('store_order_product')->where('order_id', $order['order_id'] ?? 0)->find(); if ($productInfo) { - $productOrder['product_id'] = $productInfo['product_id'] ?? 0; - $productOrder['product_price'] = $productInfo['product_price'] ?? 0; - $productOrder['total_price'] = $productInfo['total_price'] ?? 0; - $productOrder['product_num'] = $productInfo['product_num'] ?? 0; + } //商户信息 $merchantInfo = Db::name('merchant')->where('mer_id', $order['mer_id'] ?? 0)->find();