Browse Source

feat: 修改状态吗

huangzhichao 1 year ago
parent
commit
0b064497f8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/plugin/components/custom/index.tsx

+ 3 - 3
src/plugin/components/custom/index.tsx

@@ -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
       }