```javascript
WXAPI.photoBuy({
token: '000'
})
```
+ token current user login credentials
+ ids image id, multiple numbers separated by commas
+ calculate true does not actually place an order, but returns price calculation
The return value when calculate is `true`
```json
{
"code": 0,
"msg": "success",
"data": 1
}
```
+ data returns the amount that needs to be paid
Return value after actual purchase
```json
{
"code": 0,
"msg": "success",
"data": {
"id": 1,
"price": 1,
"isPay": false
}
}
```
+ id purchase record ID
+ price the amount to be paid
+ isPay whether it has been paid