Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
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
Maple
TOSTUMI
Commits
92b62fb4
Commit
92b62fb4
authored
Dec 06, 2020
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0001错误 不提示
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
f7079474
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
CommunityService.ts
src/models/CommunityManagement/CommunityService.ts
+2
-2
Contract.ts
src/models/CommunityManagement/Contract.ts
+3
-2
User.ts
src/models/CommunityManagement/User.ts
+1
-2
VisitorRecord.ts
src/models/CommunityManagement/VisitorRecord.ts
+10
-1
No files found.
src/models/CommunityManagement/CommunityService.ts
View file @
92b62fb4
...
@@ -63,10 +63,10 @@ export default {
...
@@ -63,10 +63,10 @@ export default {
console
.
log
(
resp
);
console
.
log
(
resp
);
if
(
resp
.
code
==
500
||
resp
.
error_code
!=
'0000'
)
{
if
(
resp
.
code
==
500
||
resp
.
error_code
!=
'0000'
)
{
// window.location.href = '/500';
// window.location.href = '/500';
message
.
error
(
`
${
resp
.
error_code
}
:
${
resp
.
error_msg
}
`
);
}
}
if
(
resp
.
error_code
!=
'0000'
)
{
if
(
resp
.
error_code
!=
'0000'
)
{
console
.
log
(
'请求错误码:'
+
'('
+
playload
.
index
+
')'
+
resp
.
error_code
);
message
.
error
(
`
${
resp
.
error_code
}
:
${
resp
.
error_msg
}
`
);
console
.
log
(
playload
);
}
else
{
}
else
{
switch
(
playload
.
index
)
{
switch
(
playload
.
index
)
{
case
21
:
case
21
:
...
...
src/models/CommunityManagement/Contract.ts
View file @
92b62fb4
...
@@ -3,6 +3,7 @@ import { message } from 'antd';
...
@@ -3,6 +3,7 @@ import { message } from 'antd';
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
import
{
routerRedux
}
from
'dva/router'
;
import
{
routerRedux
}
from
'dva/router'
;
import
{
printf
}
from
'@/utils/log'
;
export
default
{
export
default
{
namespace
:
'Contract'
,
namespace
:
'Contract'
,
...
@@ -46,8 +47,8 @@ export default {
...
@@ -46,8 +47,8 @@ export default {
console
.
log
(
'开始请求'
);
console
.
log
(
'开始请求'
);
const
resp
=
yield
call
(
service
.
RA
,
playload
);
const
resp
=
yield
call
(
service
.
RA
,
playload
);
if
(
resp
.
error_code
!=
'0000'
)
{
if
(
resp
.
error_code
!=
'0000'
)
{
console
.
log
(
'请求错误码:'
+
'('
+
playload
.
index
+
')'
+
resp
.
error_code
);
printf
(
playload
,
resp
);
console
.
log
(
playload
);
message
.
error
(
`
${
resp
.
error_code
}
:
${
resp
.
error_msg
}
`
);
}
else
{
}
else
{
switch
(
playload
.
index
)
{
switch
(
playload
.
index
)
{
case
19
:
case
19
:
...
...
src/models/CommunityManagement/User.ts
View file @
92b62fb4
...
@@ -102,8 +102,7 @@ export default {
...
@@ -102,8 +102,7 @@ export default {
}
}
if
(
resp
.
error_code
!=
'0000'
)
{
if
(
resp
.
error_code
!=
'0000'
)
{
console
.
log
(
'请求错误码:'
+
'('
+
playload
.
index
+
')'
+
resp
.
error_code
);
message
.
error
(
`
${
resp
.
error_code
}
:
${
resp
.
error_msg
}
`
);
console
.
log
(
playload
);
var
Data3Error
=
null
;
var
Data3Error
=
null
;
var
Result
=
null
;
var
Result
=
null
;
let
Data4Error
=
null
;
let
Data4Error
=
null
;
...
...
src/models/CommunityManagement/VisitorRecord.ts
View file @
92b62fb4
/*
* @Author: your name
* @Date: 2020-11-19 16:54:53
* @LastEditTime: 2020-12-04 17:24:27
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\models\CommunityManagement\VisitorRecord.ts
*/
import
*
as
service
from
'../../services/tos'
;
import
*
as
service
from
'../../services/tos'
;
import
{
message
}
from
'antd'
;
import
{
message
}
from
'antd'
;
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
...
@@ -34,11 +42,12 @@ export default {
...
@@ -34,11 +42,12 @@ export default {
//标准请求
//标准请求
*
RA
({
playload
},
{
call
,
put
})
{
*
RA
({
playload
},
{
call
,
put
})
{
const
resp
=
yield
call
(
service
.
RA
,
playload
);
const
resp
=
yield
call
(
service
.
RA
,
playload
);
console
.
log
(
resp
);
if
(
resp
.
code
==
500
||
resp
.
error_code
!=
'0000'
)
{
if
(
resp
.
code
==
500
||
resp
.
error_code
!=
'0000'
)
{
message
.
error
(
`
${
resp
.
error_code
}
:
${
resp
.
error_msg
}
`
);
}
}
if
(
resp
.
error_code
!=
'0000'
)
{
if
(
resp
.
error_code
!=
'0000'
)
{
printf
(
playload
,
resp
);
printf
(
playload
,
resp
);
message
.
error
(
`
${
resp
.
error_code
}
:
${
resp
.
error_msg
}
`
);
}
else
{
}
else
{
switch
(
playload
.
index
)
{
switch
(
playload
.
index
)
{
case
26
:
case
26
:
...
...
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