|
@@ -55,17 +55,17 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
|
|
|
header: { 'content-type': 'application/json;' }
|
|
|
}).then((res: RequestType) => {
|
|
|
const { code, data, msg } = res
|
|
|
- if(code === 1001) {
|
|
|
+ if(code === 10001) {
|
|
|
catchError('广告资源加载失败', 1022, msg)
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if(code === 1002) {
|
|
|
+ if(code === 10002) {
|
|
|
catchError('adpId 无效', 1021, msg)
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if(code === 1003) {
|
|
|
+ if(code === 10003) {
|
|
|
catchError('初始化失败', 1011, msg)
|
|
|
return
|
|
|
}
|