Commit 55c9648b authored by hangjun83's avatar hangjun83

openapi 震坤行邮件

parent 83f0cd2a
......@@ -117,13 +117,15 @@ class ZhenKhService
}
}
if($goodsList && count($goodsList['list']) > 0){
foreach($goodsList['list'] as $goods){
$sendContent = [
'params' => ['goods' => $goodsList['list']],
'params' => ['goods' => $goods],
'consumer' => __CLASS__,
'method' => 'consumerBatchUpdateGoodsList'
];
SimpleKafka::produerSend($sendContent,'zkh');
}
}
$page ++;
if($page > $goodsList['total_page']){
......@@ -206,8 +208,8 @@ class ZhenKhService
if(!isset($params['goods']) || empty($params['goods'])){
return false;
}
$goods = $params['goods'];
foreach($params['goods'] as $goods) {
try {
$result = $this->rhawnService->updateZhenkhGoods($goods);
if(!is_null($result)){
......@@ -228,7 +230,6 @@ class ZhenKhService
]);
}
}
}
/**
* @更新订单信息
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment