正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -12,6 +12,7 @@ use App\Services\ProjectServer; | @@ -12,6 +12,7 @@ use App\Services\ProjectServer; | ||
| 12 | use Carbon\Carbon; | 12 | use Carbon\Carbon; |
| 13 | use Illuminate\Console\Command; | 13 | use Illuminate\Console\Command; |
| 14 | use Illuminate\Support\Facades\DB; | 14 | use Illuminate\Support\Facades\DB; |
| 15 | +use Illuminate\Support\Facades\Log; | ||
| 15 | 16 | ||
| 16 | class Count extends Command | 17 | class Count extends Command |
| 17 | { | 18 | { |
| @@ -82,7 +83,7 @@ class Count extends Command | @@ -82,7 +83,7 @@ class Count extends Command | ||
| 82 | DB::table('gl_count')->insert($data); | 83 | DB::table('gl_count')->insert($data); |
| 83 | } | 84 | } |
| 84 | }catch (\Exception $e){ | 85 | }catch (\Exception $e){ |
| 85 | - | 86 | + Log::error('同步数据执行失败'); |
| 86 | } | 87 | } |
| 87 | echo $this->error; | 88 | echo $this->error; |
| 88 | } | 89 | } |
-
请 注册 或 登录 后发表评论