Commit 3a5ba91e authored by hangjun83's avatar hangjun83

更新

parent 72c66058
......@@ -53,7 +53,7 @@ class LeyanApiService extends PlatformAbstractService
}
}
public function pushBatchUpdateProductByPage($currentPage,$pageSize = 1000,$token)
public function pushBatchUpdateProductByPage($currentPage, $pageSize = 1000, $token)
{
try{
if($this->checkPlatformStatus()){
......
......@@ -34,7 +34,11 @@ class LeyanService
return null;
}
try{
$result = $this->storeLeyanProducts($result);
$this->storeLeyanProducts($result);
if($result['allPage'] == $currentPage){
break;
}
$currentPage ++;
}catch(\Exception $exception){
SimpleLogs::writeLog($exception->getMessage(),__CLASS__.':updateProductsByEveryDay', 'error');
}
......
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