Loading…

Read the recharge gift rules

The background can set gift rules for user balance recharge, such as recharging 100 yuan to get 10 yuan, etc. Read these rules through this interface and display them to the user. ```javascript WXAPI.rechargeSendRules() ``` ```json { "code": 0, "data": [ { "confine": 100, "loop": true, "send": 10 } ], "msg": "success" } ``` + confine recharge amount + send bonus + loop Whether this rule is superimposed, please see the instructions below for details. In the above example, there is a rule that if you recharge 100 yuan, you will receive 10 yuan, then + If `loop` is `true`, then if the user recharges 200 yuan, the system will superimpose the rules, resulting in giving the user 20 yuan as a gift + If `loop` is `false`, then if the user recharges 200, the system will not superimpose the rules, resulting in a gift of 10 yuan to the user.