Repository navigation
fix(N4): dispatch 服務漏接 SetStops——WS ride.assigned/accepted 不帶 stops - #37
Merged
Merged
Conversation
DispatchService 有 SetStops 注入點(供派單 payload 帶全程停靠點,N4), 但 main.go 只給了 rideService/trackingService/rideQueryService/rideHandler, 漏了 dispatchService 本人 → s.stops 恆為 nil → WS ride.assigned/accept 回應一律不帶 stops。司機 App 接單當下看不到全程清單與多點地圖, 只有重啟 App 走 rides/active 還原才看得到(App 模擬器實跑抓到)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
App 端模擬器實跑(多停靠點概覽地圖)抓到:司機接單當下看不到全程清單與多點地圖,重啟 App 走
rides/active還原才看得到。機制:
DispatchService有SetStops注入點(N4:ride.assigned/ride.acceptedpayload 帶全程停靠點),但cmd/server/main.go只接了 rideService/trackingService/rideQueryService/rideHandler,漏了 dispatchService 本人 →s.stops恆為 nil → WS 派單 payload 一律不帶stops。修法:補一行
dispatchService.SetStops(rideStopRepo)。驗收:
go build ./.../go vet通過;合併後 docker rebuild,以司機 WS 實收ride.assignedpayload 確認帶stops(App 端接單當下即顯示全程,見 fleet-app#30 的實跑記錄)。🤖 Generated with Claude Code