feat: 增加支付宝在线支付、套餐订购弹窗、会员权益、支持模型展示等
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
export * from './auth';
|
||||
export * from './chat';
|
||||
export * from './model';
|
||||
export * from './pay';
|
||||
export * from './session';
|
||||
export * from './user';
|
||||
|
||||
11
Yi.Ai.Vue3/src/api/pay/index.ts
Normal file
11
Yi.Ai.Vue3/src/api/pay/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { get, post } from '@/utils/request.ts';
|
||||
|
||||
// 创建订单并发起支付
|
||||
export function createOrder(params: any) {
|
||||
return post<any>(`/pay/Order`, params).json();
|
||||
}
|
||||
|
||||
// 查询订单状态
|
||||
export function getOrderStatus(OutTradeNo: any) {
|
||||
return get<any>(`/pay/OrderStatus?OutTradeNo=${OutTradeNo}`).json();
|
||||
}
|
||||
Reference in New Issue
Block a user