fix(settle): 恢复收益中心与兑换券释放为原日结结算时间
这个提交包含在:
@@ -27,8 +27,8 @@ test('VoucherService 包含 releaseMinute() 分钟级释放方法', () => {
|
||||
assert(voucherContent.includes('function releaseMinute()'), '必须定义 releaseMinute()');
|
||||
});
|
||||
|
||||
test('VoucherService 包含立即生效起算逻辑', () => {
|
||||
assert(voucherContent.includes("date('Y-m-d', $this->orderTime($order))"), '起算日期当天立即生效');
|
||||
test('VoucherService 包含标准次日起算逻辑', () => {
|
||||
assert(voucherContent.includes("date('Y-m-d', strtotime('+1 day', $this->orderTime($order)))"), '起算日期下单次日生效起算');
|
||||
});
|
||||
|
||||
test('VoucherService 分钟释放使用 NULL 结算日规避唯一索引冲突', () => {
|
||||
@@ -71,15 +71,14 @@ const partnerSettlePath = path.resolve(__dirname, '../addons/shopro/console/Part
|
||||
assert(fs.existsSync(partnerSettlePath), 'PartnerSettle.php 文件存在');
|
||||
const cmdContent = fs.readFileSync(partnerSettlePath, 'utf-8');
|
||||
|
||||
test('PartnerSettle 默认执行 runMinute() 分钟级调度', () => {
|
||||
assert(cmdContent.includes('runMinute()'), '默认调用 runMinute()');
|
||||
assert(cmdContent.includes('partner minute settle done'), '输出分钟级执行结果日志');
|
||||
test('PartnerSettle 默认执行标准日结模式(结算昨天)', () => {
|
||||
assert(cmdContent.includes("partner daily settle start"), '默认执行标准日结');
|
||||
assert(cmdContent.includes("run($date, $rerun)"), '默认调用 DailySettleService::run()');
|
||||
});
|
||||
|
||||
test('PartnerSettle 保留 --date / --rerun / --daily 传统日结兼容', () => {
|
||||
assert(cmdContent.includes("$input->getOption('date')"), '兼容 -d/--date 参数');
|
||||
assert(cmdContent.includes("$input->getOption('rerun')"), '兼容 -r/--rerun 参数');
|
||||
assert(cmdContent.includes("$input->getOption('daily')"), '兼容 --daily 参数');
|
||||
test('PartnerSettle 支持 --minute 显式触发分钟调度', () => {
|
||||
assert(cmdContent.includes("$input->getOption('minute')"), '支持 -m/--minute 参数');
|
||||
assert(cmdContent.includes("runMinute()"), '支持按需调用 runMinute()');
|
||||
});
|
||||
|
||||
console.log('\n--------------------------------------------------------');
|
||||
|
||||
在新工单中引用
屏蔽一个用户