Commit a8dc8b0a authored by hangjun83's avatar hangjun83

队列更新

parent 9a71e22f
......@@ -68,6 +68,7 @@ class WuxiLabService
],'wuxilab');
}
$page ++;
}
}
}
......@@ -196,7 +197,8 @@ class WuxiLabService
}
}
$path = app(WuxiLabExport::class)->saveExcel(
['rawList' => $rawsList,'packageList' => $newPackages]
['rawList' => $rawsList,'packageList' => $newPackages],
$params['type']
);
if($path){
list($file,$expend) = explode('.',$path);
......@@ -205,10 +207,12 @@ class WuxiLabService
trim(shell_exec("$cmd 2>&1"));
$filePathList = explode('/',$file);
$fileName = $filePathList[count($filePathList) - 1];
$result = $this->apiService->pushBatchUploadFile($params['type'],$fileName, $this->getToken());
/*$result = $this->apiService->pushBatchUploadFile($params['type'],$fileName, $this->apiService->backgroundLogin());
if($result){
$cmd = 'rm -rf '.storage_path('app/'.$newPath);
//trim(shell_exec("$cmd 2>&1"));
SimpleLogs::writeLog('文件名为:'.$fileName.'路径:'.$newPath.'药明康德后台上传完成', __CLASS__.':processNotExistProductsUpdate');
}
}*/
}
}
}catch(\Throwable $exception){
......@@ -216,6 +220,15 @@ class WuxiLabService
}
}
public function test1()
{
$storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_do_not_update_products','data_values');
var_dump($storeEntries['products']);
var_dump(count($storeEntries['products']));
exit;
}
/**
* @批量更新商品
* @param $updateData
......
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