修复:reject() 事务闭包未 return 导致函数返回 null 违反类型声明的类型报错
This commit is contained in:
@@ -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' => '已拒绝求婚。'];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// ──────────────────────────── 离婚 ──────────────────────────────────
|
// ──────────────────────────── 离婚 ──────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user