Automatically sync after product save
Closed this issue · 1 comments
artistro08 commented
Using the artisan command, automatically sync the product. example code
public function onImport()
{
try {
traceLog('init task...');
Artisan::call('acme:import');
traceLog('done ...');
} catch (Exception $e) {
Response::make($e->getMessage(), 500);
}
}
artistro08 commented
done, fixed by 324b681