並行注意事項
請勿同時使用 Developer Console 和 Publishing API 更新應用程式,因為這可能會產生非預期的副作用。
以下列舉幾個情境範例,說明當您決定同時使用 Developer Console 和 Publishing API 更新應用程式或使用多個並行 Publishing API 用戶端時,預期的行為。
在變更已可送審的 Play 管理中心內提交編輯內容
提交編輯內容後,所有變更都會送交審查,包括可透過開發人員控制台送審的變更項目。
舉例來說,假設您在 Play 管理中心已有可送審的變更項目,如果您使用 API 建立、編輯並修訂編輯內容,修訂動作會將所有變更傳送至應用程式進行審查,包括透過開發人員控制台進行的變更。
在開發人員控制台中進行變更,會導致主動編輯失效
如果您已使用 API 進行有效編輯,且您透過 Play 管理中心更新應用程式,編輯內容就會失效。您必須建立新的編輯內容,才能透過 API 更新應用程式。
建立新編輯之後,同一位使用者對相同應用程式進行的任何編輯就會失效
如果為應用程式建立新的編輯項目,則由同一使用者建立的任何應用程式進行中的編輯會失效。每位 API 使用者在每個應用程式只能有一項有效編輯。
多位使用者可以對同一個應用程式進行有效編輯
如果兩個使用者為同一個應用程式進行編輯,則兩名使用者都會生效,直到修訂完成為止。第一個提交的編輯內容會撤銷該應用程式的所有其他編輯。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-22 (世界標準時間)。
[null,null,["上次更新時間:2024-08-22 (世界標準時間)。"],[[["Avoid using the Developer Console and the Publishing API simultaneously for application updates due to potential conflicts and unexpected outcomes."],["Concurrent edits, whether through the Developer Console or multiple Publishing API clients, can lead to one edit overriding others, requiring careful management of updates."],["Initiating a commit action using the API will send all pending changes for review, including those staged in the Developer Console."],["Making changes in the Developer Console while an API edit is active will invalidate the API edit, necessitating a new edit for API-based updates."],["Only one active edit per application is allowed per API user; creating a new edit invalidates any existing active edits by the same user for that application."]]],["Using the Developer Console and Publishing API simultaneously can cause issues. Committing an API edit sends all changes for review, even those made in the Developer Console. Developer Console changes invalidate active API edits, requiring a new edit to be made. A new edit from one user invalidates their other active edits. Multiple users can have active edits, but the first commit invalidates the others. Concurrent use of these methods can result in unintended changes being published.\n"]]