Commit f77e23b3 authored by hangjun83's avatar hangjun83

更新

parent 11beb6b1
......@@ -74,6 +74,9 @@ class WuxiLabJobCommand extends Command
case 'batchUploadProducts' :
$service->batchUploadProducts();
break;
case 'batchUpdateToWuxiLab' :
$service->batchUpdateToWuxiLab();
break;
case 'batchUpdateProduct' :
$service->batchUpdateProducts();
break;
......
......@@ -41,6 +41,8 @@ class WuxiApiService extends PlatformAbstractService
$params = [];
$params['chemicalProducts'] = $this->mergeApiMetaData($product);
$response = $this->getPostClient($this->platformInfo['platform_url'].'/api/v1/update',$params, [
$this->platformInfo['platform_params']['username'], $this->platformInfo['platform_params']['password']
]);
......
......@@ -45,6 +45,7 @@ class WuxiLabService
$limit = $this->apiService->getPlatformInfo('platform_params')['batchNums'];
$page = 0;
ini_set('memory_limit','3072M');
while(true) {
$rawList = $this->rhawnChemicalsService->getRawsList($page * $limit, $limit);
if (!$rawList) {
......
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