Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

更新 json unmarshal 型態黑名單 #9

Merged
merged 1 commit into from
Jan 15, 2021
Merged

Conversation

hpcslag
Copy link
Member

@hpcslag hpcslag commented Jan 15, 2021

由於蝦皮在取得訂單詳細資訊時,在 buyer_cancel_reasoncancel_reason 時常會出現 0 值,使程式讀取出來 json.Unmarshal 會出現這樣的錯誤:

 ReadString: expects " or n, but found 0, error found in #10 byte of ...|reason": 0, "recipie|..., bigger context ...|

注意於 reason": 0 處, reason 原應為字串,但有時系統會回傳數值。

因此對本列表進行更新。

由於蝦皮在取得訂單詳細資訊時,在 `buyer_cancel_reason`、`cancel_reason` 時常會出現 0 值,使程式讀取出來 `json.Unmarshal` 會出現這樣的錯誤:

```
 ReadString: expects " or n, but found 0, error found in teacat#10 byte of ...|reason": 0, "recipie|..., bigger context ...|
```

注意於 `reason": 0` 處, reason 原應為字串,但有時系統會回傳數值。

因此對本列表進行更新。
@YamiOdymel YamiOdymel merged commit 27167a2 into teacat:master Jan 15, 2021
@hpcslag hpcslag deleted the patch-2 branch January 15, 2021 13:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants