```javascript
WXAPI.goodsFavAdd({
goodsId: 1234,
token: '0000'
})
```
+ token the token of the currently logged in user
+ goodsId commodity ID
+ type 0 internal product; 1 external product
+ extJsonStr extended Json attributes
If it is a product in the "apifm" background product management, please pass 0 for type, otherwise pass 1;
extJsonStr can save some Json format data at the same time when adding to collection, for example:
```json
{
"color": "red",
"size": "XXL"
}
```
Return example:
```json
{
"code": 0,
"msg": "success"
}
```