Commit a7559cf3 authored by hangjun83's avatar hangjun83

乐妍

parent c442f56d
...@@ -31,6 +31,7 @@ class LeyanService ...@@ -31,6 +31,7 @@ class LeyanService
$casList = app(BhuaProductService::class)->getProductCasByBidToGroupByCas($params); $casList = app(BhuaProductService::class)->getProductCasByBidToGroupByCas($params);
if($casList){ if($casList){
foreach($casList as $cas){ foreach($casList as $cas){
if(empty($cas['c_cas'])) continue;
$this->apiService->pushQueue([ $this->apiService->pushQueue([
'params' => ['cas' => $cas], 'params' => ['cas' => $cas],
'consumer' => __CLASS__, 'consumer' => __CLASS__,
...@@ -43,7 +44,7 @@ class LeyanService ...@@ -43,7 +44,7 @@ class LeyanService
public function updateProductByCas($params) public function updateProductByCas($params)
{ {
if(!$params['cas']) return null; if(!$params['cas']) return null;
$result = $this->apiService->pushUpdateProductByCas($params,$this->getToken()); $result = $this->apiService->pushUpdateProductByCas($params['cas'],$this->getToken());
if(!$result){ if(!$result){
return null; return null;
} }
......
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