更改接口
Some checks failed
site-dist-deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
speakeloudest 2026-05-01 07:43:11 +03:00
parent 828bb8a93e
commit 7c452ce42f

View File

@ -210,7 +210,7 @@ const onSubmit = handleSubmit(async (val) => {
const amount = parseFloat(val.money)
// 1.
if (amount > props.commission / 100) return toast.error('佣金不足')
// if (amount > props.commission / 100) return toast.error('')
const minAmount = val.type === 'USDT(TRC20)' ? 30 : 200
if (amount < minAmount)
return toast.error(`金额不能小于${minAmount}${val.type === 'USDT(TRC20)' ? 'USDT' : 'RMB'}`)
@ -219,7 +219,7 @@ const onSubmit = handleSubmit(async (val) => {
isPending.value = true
// 2.
const data = await request.get<any>('/v1/public/ticket/list', {
const data = await request.get<any>('/api/v1/public/ticket/list', {
page: 1,
size: 1,
issue_type: 1,
@ -233,7 +233,7 @@ const onSubmit = handleSubmit(async (val) => {
const description =
val.type === 'USDT(TRC20)' ? `${val.type}-${val.account}` : `${val.type}-${val.avatar}`
await request.post('/v1/public/ticket/', {
await request.post('/api/v1/public/ticket/', {
title: `提现-${val.money}`,
description,
issue_type: 1,