說明
如果 review 或 merchant 有多個更新 (具有相同 review 或 merchant ID 的項目),但內容不同,且 last_update_timestamp 相同,就會發生更新衝突。由於這些項目具有相同的
last_update_timestamp,我們無法判斷哪個更新較新。
如何修正
上傳含有最新內容和更新 last_update_timestamp 的 review 或 merchant。
時間戳記建立衝突
如果 create_timestamp 的值不同而導致兩項更新衝突,請再次傳送 review 或 merchant,並將建立時間設為與原始傳送時間相符。如果建立時間與原始建立時間不符,就會發生額外的資料問題。
如果 create_timestamp 的值不同,導致兩項更新發生衝突,且您認為新的 create_timestamp 值正確無誤,請按照下列步驟為 review 或 merchant 設定新的建立時間,而不產生新的資料問題:
- 再次傳送
review或merchant,並提供預期的create_timestamp和更新後的 last_update_timestamp。 - 告知支援團隊您打算使用新的建立時間,並提供包含新建立時間項目的檔案名稱。支援團隊會確保系統使用新的建立時間,且不會產生新的資料問題。
XML 格式變更衝突
如果 XML 檔案的格式有所變更 (例如格式變更),但基礎資料沒有變更,就不需要變更更新時間。在這種情況下,請按照下列步驟操作。
- 向支援團隊說明更新
last_update_timestamp不合理的理由。 - 產生含有最新內容的檔案 (在本例中,不必更新
last_update_timestamp) - 請向支援團隊提供最新內容的檔案名稱。支援團隊會確保使用最新內容。
範例
3 月 1 日,你將動態饋給檔案「2017_03_01.xml」上傳至端點。檔案包含下列內容:
<review id="156368" mid="2739">
<reviewer_name>Ada</reviewer_name>
<create_timestamp>2017-02-25T03:02:23Z</create_timestamp>
<last_update_timestamp>2017-02-25T03:02:23Z</last_update_timestamp>
<country_code>US</country_code>
<title>Great prices</title>
<content>My order arrived on time and I got a great price.</content>
<ratings>
<overall min="1" max="10">9</overall>
<customer_service min="1" max="10">10</customer_service>
</ratings>
<collection_method>after_fulfillment</collection_method>
</review>3 月 5 日,你將動態饋給檔案「2017_03_05.xml」上傳至端點。檔案包含使用者對評論標題的編輯內容,但last_update_timestamp與先前送交審查的項目相同:
<review id="156368" mid="2739">
<reviewer_name>Ada</reviewer_name>
<create_timestamp>2017-02-25T03:02:23Z</create_timestamp>
<last_update_timestamp>2017-02-25T03:02:23Z</last_update_timestamp>
<country_code>US</country_code>
<title>Great prices and customer service!</title>
<content>My order arrived on time and I got a great price.</content>
<ratings>
<overall min="1" max="10"<9>/overall>
<customer_service min="1" max="10"<10>/customer_service>
</ratings>
<collection_method>after_fulfillment</collection_method>
</review>收到支援團隊的通知,指出發生更新資料衝突問題後,您將「2017_03_10-fix.xml」上傳至端點,解決問題。
<review id="156368" mid="2739">
<reviewer_name>Ada</reviewer_name>
<create_timestamp>2017-02-25T03:02:23Z</create_timestamp>
<last_update_timestamp>2017-03-04T02:01:20Z</last_update_timestamp>
<country_code>US</country_code>
<title>Great prices and customer service!</title>
<content>My order arrived on time and I got a great price.</content>
<ratings>
<overall min="1" max="10">9</overall>
<customer_service min="1" max="10">10</customer_service>
</ratings>
<collection_method>after_fulfillment</collection_method>
</review>