新增:购买自动钓鱼卡后自动开启钓鱼模式

This commit is contained in:
pllx
2026-04-28 11:37:38 +08:00
parent a3daf3f074
commit f16f10fe82
2 changed files with 19 additions and 7 deletions
+5
View File
@@ -125,6 +125,11 @@ class ShopController extends Controller
'total_price' => $result['total_price'] ?? $item->price,
];
// 购买自动钓鱼卡后返回剩余分钟数,前端用于自动开启钓鱼
if ($item->type === 'auto_fishing') {
$response['auto_fishing_minutes_left'] = $this->shopService->getActiveAutoFishingMinutesLeft($user);
}
// ── 装扮购买:向前端透传槽位与样式信息,用于即时更新装扮状态 ──
if (! empty($result['slot'])) {
$response['slot'] = $result['slot'];