```javascript
WXAPI.photoBuy({
token: '000'
})
```
+ token 当前用户登录凭证
+ ids 图片id,多个编号使用英文逗号分隔
+ calculate true 不实际下单,而是返回价格计算
calculate 为 `true` 时候的返回值
```json
{
"code": 0,
"msg": "success",
"data": 1
}
```
+ data 返回的就是需要支付的金额
实际购买后的返回值
```json
{
"code": 0,
"msg": "success",
"data": {
"id": 1,
"price": 1,
"isPay": false
}
}
```
+ id 购买记录ID
+ price 需要支付的金额
+ isPay 是否已支付