|
@@ -272,7 +272,7 @@ export async function getBonusPointRecord() {
|
|
|
return res.data.data
|
|
return res.data.data
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-export async function redeem(description, name, phone, prizeId, score) {
|
|
|
|
|
|
|
+export async function redeem(description, name, phone, prizeId, score, prizeName) {
|
|
|
const res = await axios({
|
|
const res = await axios({
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
url: `${process.env.VUE_APP_DEPLOY_ORIGIN}/api/cms/game/prize/redeem`,
|
|
url: `${process.env.VUE_APP_DEPLOY_ORIGIN}/api/cms/game/prize/redeem`,
|
|
@@ -285,6 +285,7 @@ export async function redeem(description, name, phone, prizeId, score) {
|
|
|
phone,
|
|
phone,
|
|
|
prizeId,
|
|
prizeId,
|
|
|
score: -1 * score,
|
|
score: -1 * score,
|
|
|
|
|
+ prizeName,
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
if (res.data.code !== 0) {
|
|
if (res.data.code !== 0) {
|