fix(config): 恢复开发和测试环境API配置

- 将开发环境API_BASE_URL从线上地址改回本地地址
- 在开发环境注释掉线上API地址配置
- 将测试环境API_BASE_URL从线上地址改回本地地址
- 在测试环境注释掉线上API地址配置

fix(order): 修复待收货状态下订单操作权限控制

- 在待收货状态判断条件中增加orderStatus !== 6的限制
- 防止已完成订单在待收货状态下显示查看物流和确认收货按钮
This commit is contained in:
2026-02-04 15:10:31 +08:00
parent 174f9458e2
commit afe8f93c32
2 changed files with 5 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
export const ENV_CONFIG = {
// 开发环境
development: {
// API_BASE_URL: 'http://127.0.0.1:9200/api',
API_BASE_URL: 'https://mp-api.websoft.top/api',
API_BASE_URL: 'http://127.0.0.1:9200/api',
// API_BASE_URL: 'https://mp-api.websoft.top/api',
APP_NAME: '开发环境',
DEBUG: 'true',
},
@@ -15,7 +15,8 @@ export const ENV_CONFIG = {
},
// 测试环境
test: {
API_BASE_URL: 'https://mp-api.websoft.top/api',
API_BASE_URL: 'http://127.0.0.1:9200/api',
// API_BASE_URL: 'https://mp-api.websoft.top/api',
APP_NAME: '测试环境',
DEBUG: 'true',
}

View File

@@ -785,7 +785,7 @@ function OrderList(props: OrderListProps) {
)}
{/* 待收货状态:显示查看物流和确认收货 */}
{item.deliveryStatus === 20 && (!item.riderId || !!item.sendEndTime) && item.orderStatus !== 2 && (
{item.deliveryStatus === 20 && (!item.riderId || !!item.sendEndTime) && item.orderStatus !== 2 && item.orderStatus !== 6 && (
<Space>
<Button size={'small'} onClick={(e) => {
e.stopPropagation();