diff --git a/config/env.ts b/config/env.ts index 4ec1704..8eb6791 100644 --- a/config/env.ts +++ b/config/env.ts @@ -2,8 +2,8 @@ export const ENV_CONFIG = { // 开发环境 development: { - // API_BASE_URL: 'http://127.0.0.1:9200/api', - API_BASE_URL: 'https://glt-api.websoft.top/api', + API_BASE_URL: 'http://127.0.0.1:9200/api', + // API_BASE_URL: 'https://glt-api.websoft.top/api', APP_NAME: '开发环境', DEBUG: 'true', }, diff --git a/src/pages/user/components/UserFooter.tsx b/src/pages/user/components/UserFooter.tsx index 7398151..a021a0f 100644 --- a/src/pages/user/components/UserFooter.tsx +++ b/src/pages/user/components/UserFooter.tsx @@ -47,7 +47,7 @@ const UserFooter = () => { return ( <>
-
当前版本:{Version}
+ {/*
当前版本:{Version}
*/} {/*
Copyright © { new Date().getFullYear() } {Copyright}
*/}
{Copyright}
diff --git a/src/shop/orderDetail/index.tsx b/src/shop/orderDetail/index.tsx index 96e2128..dca8ed1 100644 --- a/src/shop/orderDetail/index.tsx +++ b/src/shop/orderDetail/index.tsx @@ -3,7 +3,7 @@ import {Cell, CellGroup, Image, Space, Button, Dialog} from '@nutui/nutui-react- import Taro from '@tarojs/taro' import {View} from '@tarojs/components' import {ShopOrder} from "@/api/shop/shopOrder/model"; -import {getShopOrder, updateShopOrder, refundShopOrder} from "@/api/shop/shopOrder"; +import {getShopOrder, updateShopOrder} from "@/api/shop/shopOrder"; import {listShopOrderGoods} from "@/api/shop/shopOrderGoods"; import {ShopOrderGoods} from "@/api/shop/shopOrderGoods/model"; import dayjs from "dayjs"; @@ -69,7 +69,7 @@ const OrderDetail = () => { Taro.showLoading({ title: '提交中...' }) // 退款相关操作使用退款接口:PUT /api/shop/shop-order/refund - await refundShopOrder({ + await updateShopOrder({ orderId: order.orderId, refundMoney: order.payPrice || order.totalPrice, orderStatus: 7