|
@@ -194,11 +194,12 @@ export async function getScore() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
export async function addScore(score) {
|
|
export async function addScore(score) {
|
|
|
|
|
+ const scoreEncrypted = encodeStr(Base64.encode(score))
|
|
|
const res = await axios({
|
|
const res = await axios({
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
url: `${process.env.VUE_APP_DEPLOY_ORIGIN}/api/cms/game/point/add`,
|
|
url: `${process.env.VUE_APP_DEPLOY_ORIGIN}/api/cms/game/point/add`,
|
|
|
data: {
|
|
data: {
|
|
|
- score,
|
|
|
|
|
|
|
+ score: scoreEncrypted,
|
|
|
type: 'game',
|
|
type: 'game',
|
|
|
userId: store.state.userInfo.id,
|
|
userId: store.state.userInfo.id,
|
|
|
},
|
|
},
|