Commit 8ede2e83 authored by luhongguang's avatar luhongguang

update:goods同步脚本

parent 91eb71b6
...@@ -23,7 +23,7 @@ class GoodsToInitController extends Cli ...@@ -23,7 +23,7 @@ class GoodsToInitController extends Cli
public function runAction() public function runAction()
{ {
$total = $this->getDataCount(); $total = $this->getDataCount();
$pageSize = 200; $pageSize = 100;
$pageTotal = floor($total / $pageSize) + 1; $pageTotal = floor($total / $pageSize) + 1;
for ($i = 0; $i <= $pageTotal; $i++) { for ($i = 0; $i <= $pageTotal; $i++) {
......
...@@ -78,6 +78,7 @@ class CurlFactory implements CurlFactoryInterface ...@@ -78,6 +78,7 @@ class CurlFactory implements CurlFactoryInterface
curl_reset($resource); curl_reset($resource);
$this->handles[] = $resource; $this->handles[] = $resource;
} }
curl_close($resource);
} }
/** /**
......
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