Commit 55c9648b authored by hangjun83's avatar hangjun83

openapi 震坤行邮件

parent 83f0cd2a
...@@ -117,13 +117,15 @@ class ZhenKhService ...@@ -117,13 +117,15 @@ class ZhenKhService
} }
} }
if($goodsList && count($goodsList['list']) > 0){ if($goodsList && count($goodsList['list']) > 0){
foreach($goodsList['list'] as $goods){
$sendContent = [ $sendContent = [
'params' => ['goods' => $goodsList['list']], 'params' => ['goods' => $goods],
'consumer' => __CLASS__, 'consumer' => __CLASS__,
'method' => 'consumerBatchUpdateGoodsList' 'method' => 'consumerBatchUpdateGoodsList'
]; ];
SimpleKafka::produerSend($sendContent,'zkh'); SimpleKafka::produerSend($sendContent,'zkh');
} }
}
$page ++; $page ++;
if($page > $goodsList['total_page']){ if($page > $goodsList['total_page']){
...@@ -206,8 +208,8 @@ class ZhenKhService ...@@ -206,8 +208,8 @@ class ZhenKhService
if(!isset($params['goods']) || empty($params['goods'])){ if(!isset($params['goods']) || empty($params['goods'])){
return false; return false;
} }
$goods = $params['goods'];
foreach($params['goods'] as $goods) {
try { try {
$result = $this->rhawnService->updateZhenkhGoods($goods); $result = $this->rhawnService->updateZhenkhGoods($goods);
if(!is_null($result)){ if(!is_null($result)){
...@@ -228,7 +230,6 @@ class ZhenKhService ...@@ -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