加载中…

升级组织规模

# 按照收费项目严格匹配 ```javascript WXAPI.organizeUpgrade({ token: '000', organizeId: '组织ID', priceId: 1234 }) ``` + token 当前用户登陆凭证 + organizeId 即将升级的组织ID + priceId 新的组织收费ID # 按照每人/时长自动计算价格 该模式下,需要先在系统设置,系统参数,添加文本参数: + 参数名 organize_price + 参数值: ```json { "dayPrice": 1, "monthPrice": 30, "yearPrice": 330 } ``` + dayPrice 按天计价的每人次价格 + monthPrice 按月计价的每人次价格 + yearPrice 按年计价的每人次价格 ```javascript WXAPI.organizeUpgradeV2({ token: '000', name: '组织名称', }) ``` + token 当前用户登陆凭证 + organizeId 即将升级的组织ID + addMembers 增加人数,负数为减少人数 + durationType 时长类型 0 天 1 月 2 年 + addDuration 增加时长 + calculate 传true,不处理逻辑,只是返回预测结果 # 在线支付方式升级 如果使用在线支付升级组织,移步下面教程: [**《nextAction 参数使用详解》**](https://www.yuque.com/apifm/doc/aetmlb#UChr2)