Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
b75f1e10
Commit
b75f1e10
authored
Dec 15, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 评价相关bug
parent
7626ab73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
index.ts
src/constants/index.ts
+6
-6
request.ts
src/utils/request.ts
+3
-1
No files found.
src/constants/index.ts
View file @
b75f1e10
...
...
@@ -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
;
/**
* 渠道积分兑换
*/
...
...
src/utils/request.ts
View file @
b75f1e10
...
...
@@ -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
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment