修复:reject() 事务闭包未 return 导致函数返回 null 违反类型声明的类型报错

This commit is contained in:
2026-03-01 18:29:19 +08:00
parent a60a2c8173
commit 00231e0836
+1 -1
View File
@@ -227,9 +227,9 @@ class MarriageService
if ($proposer = $marriage->user) { if ($proposer = $marriage->user) {
$this->currency->change($proposer, 'gold', 0, CurrencySource::RING_LOST, "求婚被拒,戒指消失({$marriage->ringItem?->name}"); $this->currency->change($proposer, 'gold', 0, CurrencySource::RING_LOST, "求婚被拒,戒指消失({$marriage->ringItem?->name}");
} }
});
return ['ok' => true, 'message' => '已拒绝求婚。']; return ['ok' => true, 'message' => '已拒绝求婚。'];
});
} }
// ──────────────────────────── 离婚 ────────────────────────────────── // ──────────────────────────── 离婚 ──────────────────────────────────