Loading…

Get the default group setting for a specified product

```javascript WXAPI.goodsDefaultPingtuan(goodsId) ``` + goodsId commodity id ```json { "code": 0, "data": { "tuanInfo": { "dateAdd": "2021-08-04 21:36:34", "dateEnd": "2021-08-05 21:36:35", "dateUpdate": "2021-08-05 21:37:10", "goodsId": 6765, "goodsNumber": 0, "helpNumber": 0, "id": 16258, "orderNumber": 0, "pingtuanId": 511, "status": 1, "statusStr": "Invalid", "uid": 0, "userId": 951 }, "setting": { "allowOverflow": false, "allowRepetBuy": false, "dateAdd": "2018-09-11 11:16:38", "dateEnd": "2019-12-31 00:00:00", "id": 511, "numberDoing": 0, "numberGoods": 10, "numberOrder": 10, "numberPersion": 10, "numberSuccess": 0, "openUserType": 1, "openerSendScore": 0, "pingtuanPrice": 0, "refundType": 1, "refundTypeStr": "Return to the original route", "status": 0, "timeoutHours": 24 } }, "msg": "success" } ``` + tuanInfo current group information - id is the id of the group, use this id to participate in this group fight - goodsNumber total number of goods - dateEnd cut-off time - helpNumber Number of team members (including the team leader himself) - orderNumber total order number - pingtuanId is the ID of the group setting, corresponding to the id in `setting` - status 0 in progress 1 invalid 2 completed + setting group group setting information (for specific field information, see the group group setting interface)