|
@ -6,6 +6,7 @@ import axios from 'axios' |
|
|
import API from '@/util/http.js' |
|
|
import API from '@/util/http.js' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
import Cookies from 'js-cookie'; |
|
|
import Cookies from 'js-cookie'; |
|
|
|
|
|
import Decimal from 'decimal.js'; |
|
|
// 定义 fixedAdminId |
|
|
// 定义 fixedAdminId |
|
|
// const fixedAdminId = 1; |
|
|
// const fixedAdminId = 1; |
|
|
|
|
|
|
|
@ -93,7 +94,7 @@ const add = async function () { |
|
|
formattedRecharge.freeGold = Number(formattedRecharge.freeGold) * 100; |
|
|
formattedRecharge.freeGold = Number(formattedRecharge.freeGold) * 100; |
|
|
} |
|
|
} |
|
|
if (formattedRecharge.money) { |
|
|
if (formattedRecharge.money) { |
|
|
formattedRecharge.money = Number(formattedRecharge.money) * 100; |
|
|
|
|
|
|
|
|
formattedRecharge.money = new Decimal(formattedRecharge.money).mul(100).toNumber(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (formattedRecharge.payTime) { |
|
|
if (formattedRecharge.payTime) { |
|
|