|
|
@@ -18,7 +18,7 @@ class UrsPartnerDividendCommand extends Command
|
|
|
* 命令签名
|
|
|
*/
|
|
|
protected $signature = 'urs-promotion:partner-dividend
|
|
|
- {--date= : 指定分红日期,格式:Y-m-d,默认为今天}
|
|
|
+ {--date= : 指定分红日期,格式:Y-m-d,默认为昨天}
|
|
|
{--force : 强制执行,即使已经分红过}
|
|
|
{--retry : 重试失败的分红}';
|
|
|
|
|
|
@@ -34,8 +34,8 @@ class UrsPartnerDividendCommand extends Command
|
|
|
{
|
|
|
$this->info('=== URS合伙人分红任务开始 ===');
|
|
|
|
|
|
- // 获取分红日期
|
|
|
- $date = $this->option('date') ?: Carbon::today()->format('Y-m-d');
|
|
|
+ // 获取分红日期,默认为昨天
|
|
|
+ $date = $this->option('date') ?: Carbon::yesterday()->format('Y-m-d');
|
|
|
$force = $this->option('force');
|
|
|
$retry = $this->option('retry');
|
|
|
|