Showing
1 changed file
with
2 additions
and
3 deletions
@@ -3,7 +3,6 @@ | @@ -3,7 +3,6 @@ | ||
3 | * | 3 | * |
4 | * Created by y.huang on 17/5/21. | 4 | * Created by y.huang on 17/5/21. |
5 | */ | 5 | */ |
6 | -import {code, msg} from '../configs/constant'; | ||
7 | 6 | ||
8 | /** | 7 | /** |
9 | * 返回一个错误对象 | 8 | * 返回一个错误对象 |
@@ -12,9 +11,9 @@ import {code, msg} from '../configs/constant'; | @@ -12,9 +11,9 @@ import {code, msg} from '../configs/constant'; | ||
12 | */ | 11 | */ |
13 | const _errJson = (message) => { | 12 | const _errJson = (message) => { |
14 | return { | 13 | return { |
15 | - code: code.PARAMS_ERROR, | 14 | + code: '203', |
16 | description: message, | 15 | description: message, |
17 | - name: msg.PARAMS_ERROR, | 16 | + name: '数据错误', |
18 | errKey: 'valid' | 17 | errKey: 'valid' |
19 | }; | 18 | }; |
20 | }; | 19 | }; |
-
Please register or login to post a comment