This commit is contained in:
2026-05-22 16:45:28 +08:00
parent e4f181e4fe
commit 003810114b
6 changed files with 83 additions and 39 deletions
@@ -22,10 +22,8 @@ class PersonalAccountCostLogic extends BaseLogic
return false;
}
$conflict = self::findCostConflict($costDate, $mediaSource);
if ($conflict['conflict']) {
$by = $conflict['creator_name'] !== '' ? '(录入人:' . $conflict['creator_name'] . '' : '';
self::setError('该日期下该渠道的账户消耗已存在' . $by . ',请直接编辑该记录,避免重复汇总');
if (self::isCostDuplicate($adminId, $costDate, $mediaSource)) {
self::setError('您在该日期下已录入过该渠道的账户消耗,请直接编辑');
return false;
}