無效的評分

說明

如果 review 具有下列條件,就會出現無效評分:

  • 最低評分範圍和最高評分範圍相等。
  • 評論評分未介於最小值和最大值之間 (包含評分範圍)。

如何修正

傳送更新後的 review ,並確認下列事項:last_update_timestamp

  1. 最低評分範圍和最高評分範圍不相等。
  2. 評論評分介於評分範圍的最小值和最大值之間 (含)。

範例

3 月 1 日,你將動態饋給檔案「2017_03_01.xml」上傳至端點。檔案包含下列內容:

<review id="156368" mid="2739">
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-27T07:55:06Z</create_timestamp>
  <last_update_timestamp>2017-02-27T07:55:06Z</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">0</overall>
  <customer_service min="1" max="10">10</customer_service>
  </ratings>
  <collection_method>after_fulfillment</collection_method>
</review>

上述檔案包含的評論評分超出指定範圍。支援團隊處理動態消息後,通知你發生資料問題 (分級無效)。

幾天後,您審查過文件,並將「2017_03_04-fix.xml」檔案上傳至端點,解決無效分級問題。「2017_03_04-fix.xml」的內容如下:

<review id="156368" mid="2739">
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-27T07:55:06Z</create_timestamp>
  <last_update_timestamp>2017-03-03T08:01:20Z</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">8</overall>
    <customer_service min="1" max="10">10</customer_service>
  </ratings>
  <collection_method>after_fulfillment</collection_method<
</review>