作者 lyh

gx

... ... @@ -25,6 +25,7 @@ class RankData extends BaseCommands
/**
* The console command description.
* The console command description.
*
* @var string
*/
... ...
... ... @@ -28,7 +28,7 @@ class Kernel extends ConsoleKernel
$schedule->command('web_traffic 2')->cron('*/18 * * * *'); // 引流 4-8个月的项目,18分钟一次
$schedule->command('web_traffic 3')->cron('*/12 * * * *'); // 引流 大于9个月的项目,12分钟一次
$schedule->command('sync_channel')->dailyAt('06:00')->withoutOverlapping(1); // 渠道信息,每周执行一次
// $schedule->command('sync_project')->everyMinute()->withoutOverlapping(1); //同步项目
$schedule->command('sync_project')->everyMinute()->withoutOverlapping(1); //同步项目
$schedule->command('month_count')->monthlyOn(1,'01:00')->withoutOverlapping(1);//没月月初1号执行月统计记录
// $schedule->command('inquiry_delay')->everyMinute()->withoutOverlapping(1);//TODO::上线放开,转发询盘,每分钟执行一次
$schedule->command('inquiry_count')->dailyAt('01:00')->withoutOverlapping(1); // 询盘统计数据,每天凌晨执行一次
... ...
... ... @@ -7,7 +7,5 @@ use App\Models\Base;
class WebSettingCountry extends Base
{
protected $table = 'gl_web_setting_country';
//连接数据库
protected $connection = 'custom_mysql';
}
... ...