Loading…

Event schedule registration

```javascript WXAPI.tournamentJoin({ token: '000' }) ``` + token current user login credentials + id schedule ID ```json { "code": 20002, "msg": "Insufficient available balance", "data": { "record": { "id": 1, "userId": 166, "tournamentId": 11, "scheduleId": 4, "uid": 110806137, "status": 0, "amount": 1, "orderNo": "2605101695445664", "dateAdd": "2026-05-10 14:12:32" }, "needPayAmount": 1 } } ``` + code 0 Registration successful 20002 Insufficient available balance + The data body returned by the data interface + record registration record - id Registration ID - tournamentId tournament ID - scheduleId schedule ID - uid registration user ID - status status: 0-pending payment 1-paid - amount registration fee - orderNo payment order number - dateAdd registration time - drawGroup draws groups - drawNumber lottery number + needPayAmount The amount that still needs to be paid If code == 20002, you can call the online payment interface, start online collection, and complete the registration after online payment by passing the nextAction parameter.