30 lines
549 B
PHP
30 lines
549 B
PHP
<?php
|
|
|
|
|
|
|
|
|
|
namespace crmeb\jobs;
|
|
|
|
use app\common\repositories\store\shipping\ExpressRepository;
|
|
use crmeb\interfaces\JobInterface;
|
|
use think\facade\Log;
|
|
|
|
class ExpressSyncJob implements JobInterface
|
|
{
|
|
|
|
public function fire($job, $data)
|
|
{
|
|
try{
|
|
app()->make(ExpressRepository::class)->syncExportAll();
|
|
}catch (\Exception $exception){
|
|
Log::info(var_export($exception, 1));
|
|
}
|
|
$job->delete();
|
|
}
|
|
|
|
public function failed($data)
|
|
{
|
|
// TODO: Implement failed() method.
|
|
}
|
|
}
|