new-admin-api/crmeb/jobs/ImportSpreadsheetExcelJob.php

30 lines
642 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace crmeb\jobs;
use app\common\repositories\store\order\StoreOrderRepository;
use crmeb\interfaces\JobInterface;
use think\facade\Log;
class ImportSpreadsheetExcelJob implements JobInterface
{
public function fire($job, $data)
{
try{
app()->make(StoreOrderRepository::class)->setWhereDeliveryStatus($data['data'],$data['mer_id']);
}catch (\Exception $e){
Log::info('商户ID'.$data['mer_id'].' 导入文件 error : ' . $e->getMessage());
}
$job->delete();
}
public function failed($data)
{
// TODO: Implement failed() method.
}
}