Commit a364c465 authored by hangjun83's avatar hangjun83

更新

parent 3a5ba91e
...@@ -30,11 +30,11 @@ class LeyanService ...@@ -30,11 +30,11 @@ class LeyanService
$currentPage = 1; $currentPage = 1;
while(true){ while(true){
$result = $this->apiService->pushBatchUpdateProductByPage($currentPage,1000,$this->getToken()); $result = $this->apiService->pushBatchUpdateProductByPage($currentPage,1000,$this->getToken());
if(!$result){ if(!$result || !$result['productInfo']){
return null; return null;
} }
try{ try{
$this->storeLeyanProducts($result); $this->storeLeyanProducts($result['productInfo']);
if($result['allPage'] == $currentPage){ if($result['allPage'] == $currentPage){
break; break;
} }
......
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