Commit b75f1e10 authored by XieZhiXiong's avatar XieZhiXiong

fix: 评价相关bug

parent 7626ab73
......@@ -483,17 +483,17 @@ export const ORDER_TYPE2_SPOT = 3;
*/
export const ORDER_TYPE2_CENTRALIZED = 4;
/**
* 积分兑换
*/
export const ORDER_TYPE2_POINTS = 5;
/**
* 渠道直采
*/
export const ORDER_TYPE2_CHANNEL_DIRECT = 6;
export const ORDER_TYPE2_CHANNEL_DIRECT = 5;
/**
* 渠道现货
*/
export const ORDER_TYPE2_CHANNEL_SPOT = 7;
export const ORDER_TYPE2_CHANNEL_SPOT = 6;
/**
* 积分兑换
*/
export const ORDER_TYPE2_POINTS = 7;
/**
* 渠道积分兑换
*/
......
......@@ -137,7 +137,9 @@ class ApiRequest {
} else {
// 使用resolve将数据返回, 请求时需手动处理data为null的情况
resolve(res)
options.ctlType === 'message' && message.info(res.message)
// 这是展示接口错误信息,任何 ctlType 都可以,不然一些 get 请求出错了
// 错误信息无法展示给用户
res.message && message.info(res.message)
}
}).catch((err: IRequestError) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment