feat(android): 采集详情和采购详情新增「在拼多多中打开」按钮,设备忙时禁用 #375
Open
opened 2026-10-09 14:55:44 +08:00 by ila
·
0 comments
No Branch/Tag Specified
main
fix/377-rejected-purchase-outbox
fix/376-pre-address-spec-verification
fix/374-final-spec-confirmation
fix/373-navigation-diagnostics
fix/370-color-discovery
feat/367-last-batch-repurchase
fix/368-image-search-partial-link
integration/364-365-366-main
feat/364-purchase-failure-snapshot
integration/365-366-validation
fix/365-order-result-observation
fix/366-address-editor-ready
fix/359-auto-match-resume
feat/363-inner-code-page-size
fix/362-truncated-spec-card
fix/361-spec-probe-click
docs/agents-worktree-rules
fix/358-syb-size-weight
feat/357-syb-cancel-status
feat/356-purchase-order-filter
fix/355-syb-list-timeout
feat/353-syb-shop-multiselect
fix/354-syb-top-pagination
fix/352-syb-source-created
fix/348-reveal-swipe
feat/340-syb-excluded-products
fix/351-inner-code-apply-selection
fix/350-match-layout
fix/350-inner-code-matching
feat/349-batch-return-use
feat/347-batch-return-cancel
feat/345-yeeke-reship
fix/346-root-serves-spa
fix/344-inner-code-stall-match
fix/343-syb-writeback-session
feat/339-syb-page-size
feat/338-return-match
feat/337-yeeke-admin-ui
feat/336-yeeke-return-sync
fix/335-bottom-submit-node
fix/334-spec-probe-top-swipe
fix/333-purchaser-device-owner
fix/331-spec-panel-recognition
fix/330-syb-writeback-session
feat/327-syb-writeback-filter
feat/326-order-information
fix/325-order-result
feat/316-chrome-order-backfill
fix/307-backfill-entry
feat/305-syb-order-writeback
feat/306-order-paid-amount
release/283
fix/283-purchase-mapping-consistency
fix/230-horizontal-spec-selection
feat/263-spec-rematch
fix/262-purchase-handoff
fix/260-261-purchase-readiness
fix/259-partial-collection-link
feat/258-one-click-replace
fix/257-color-normalized-match
fix/256-collection-single-dimension
fix/255-current-page-reidentify
feat/253-one-click-link
fix/254-match-loading
fix/251-syb-spec-candidates
feat/250-continuous-collection
fix/249-local-purchase-diagnostics
fix/248-bottom-submit
fix/247-short-address-panel
fix/246-address-return-panel
fix/245-purchase-failure-diagnostics
fix/244-selected-card-duplicates
fix/243-spec-entry-recovery
feat/242-agent-order-backfill
feat/241-order-backfill-endpoint
fix/239-syb-partial-sync
fix/238-spec-panel-preswipe
feat/237-client-api-keys
feat/236-purchaser-syb-sync
fix/235-syb-pagination-overlap
release/234-integrated
fix/229-address-entry-dedup
fix/228-selection-proof-panel-transition
fix/227-address-panel-return
fix/226-reopen-pdd-on-manual-retry
fix/225-in-place-purchase-retry
fix/224-final-spec-revalidation
fix/223-probed-confirmed-mapping
chore/221-devharness-sync
feat/218-purchase-result-bubble
fix/217-agent-retry-current-spec
fix/216-syb-spec-role-order
feat/215-mandatory-live-spec-probe
feat/214-verified-purchase-actions
fix/212-syb-sync-shop-snapshot
feat/211-spec-entry-ready-wait
feat/210-order-result-payment-transition
feat/209-pdd-bottom-spec-entry
feat/200-ai-match-result-purchase-ready
feat/199-job-execution-logs
feat/198-syb-ai-parse
feat/195-scheduled-spec-auto-match
fix/197-ai-write-timeout
feat/190-syb-inline-correction
fix/193-address-entry-reveal
feat/194-one-click-spec-match
fix/192-order-result-scroll
No results found.
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: OPC/goauto#375
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
基本信息
用户确认的需求(2026-10-09 问答)
已核验事实(
origin/maine26743c817275137f7dc8a3659461d552371b9e3)AgentForegroundService.kt:1196、:1211调用PddLinkLauncher(this).open(url)。浏览器打开后,Agent 在自动化流程中会代点「打开拼多多APP」;本单的人工入口不代点,由用户自己点。AgentForegroundService.kt:786调用PddLinkLauncher(this).open(it, preferDirect = true);直达抛异常才退回浏览器(PddLaunchFallback.kt:5-6,#232)。CollectionHistoryItem.goodsId、PurchaseHistoryItem.pddGoodsId(AgentApiClient.kt)。purchase_task.pdd_url_snapshot2152 条、collection_task.url_snapshot2160 条,全部是https://mobile.yangkeduo.com/goods.html?goods_id=<编号>,没有附加参数;另有 489 条采集任务链接为空(图搜)。所以用商品编号拼出的链接与服务端保存的一致。TaskHistoryFragment.renderCollectionDetail(:708,标题行 :721 显示 goodsId)、renderPurchaseDetail(:893,「PDD 商品:…」在 :898;同页已有实心按钮「重试采购」)。AgentForegroundService.repurchaseLocalIdle()(!working && 无互斥任务 && 无进行中采购 && 无未上传结果 && 当前任务为空 && 未在回填),目前是服务内私有函数;重购状态通过repurchaseState和广播发布给界面。目标
在采集详情页和采购详情页提供「在拼多多中打开」按钮,让用户在 PDD App 中查看该任务的商品,不影响正在进行的自动化工作。
非目标
方案
https://mobile.yangkeduo.com/goods.html?goods_id=<编号>。编号为空或不是纯数字时不显示按钮。所有任务状态都显示。PddLinkLauncher.open(url)(浏览器)。PddLinkLauncher.open(url, preferDirect = true)(先直达,失败退回浏览器)。为了能提示打开方式,需要让PddLinkLauncher/PddLaunchFallback返回走了哪条路以及直达失败的异常类名;实现时与 #373 方案 3 共用同一个返回结构,不各写一套。repurchaseLocalIdle一致:由服务发布一个只读的「设备忙」状态和原因,界面监听,不在界面另写一套判断。任务结束后的冷却期不置灰。状态变化时按钮实时更新;点击时再判断一次,忙则不打开并提示原因。设计证据(低保真,2026-10-09)
materialButtonOutlinedStyle),最小高度 48dp,与实心的「重试采购」「重新采集」区分,降低误点。contentDescription:「在拼多多中打开商品 <编号>」。子项目影响、依赖与并行
TaskHistoryFragment.kt、AgentForegroundService.kt(发布只读的忙状态)、PddNavigation.kt/PddLaunchFallback.kt(返回打开方式,与 #373 共用),以及对应测试。验收标准
purchase必须重新打开本任务链接。风险与回退
repurchaseLocalIdle的统一判断,并在点击时再判断一次。文档影响
备注
本单由 Claude Code 依据与用户的逐项问答、代码阅读和线上只读查询起草;不含账号、地址、Cookie 或 Token。