|
|
@@ -204,7 +204,7 @@ public class EnergySystemFlowTest {
|
|
|
.thenThrow(new RuntimeException("能量不足,当前可用:300,需要:5000"));
|
|
|
|
|
|
// === When:尝试兑换 ===
|
|
|
- Result<Boolean> result = energyController.deductForWish(deductRequest, CHILD_ID);
|
|
|
+ Result<Boolean> result = energyController.deductForWish(deductRequest, CHILD_ID, null);
|
|
|
|
|
|
// === Then:返回错误 ===
|
|
|
assertEquals(500, result.getCode());
|