shawenguan %!s(int64=2) %!d(string=hai) anos
pai
achega
24902b63b0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Scripts/gandart/gandartCheck.js

+ 2 - 2
Scripts/gandart/gandartCheck.js

@@ -298,7 +298,7 @@ async function getAllMyCastingList() {
     let castingLst = detail.rows || [];
     let castingLst = detail.rows || [];
     for (let i = 2; i < totalPage + 1; i++) {
     for (let i = 2; i < totalPage + 1; i++) {
         detail = await getMyCastingData(i, pageSize);
         detail = await getMyCastingData(i, pageSize);
-        if (detail) {
+        if (detail && detail.list) {
             castingLst = castingLst.concat(detail.list)
             castingLst = castingLst.concat(detail.list)
         }
         }
     }
     }
@@ -357,7 +357,7 @@ async function getMyCastingDetail(page, pageSize, collectionName) {
             let params = {
             let params = {
                 page: page,
                 page: page,
                 pageSize: pageSize,
                 pageSize: pageSize,
-                collectionName: encodeURIComponent(collectionName),
+                collectionName: collectionName,
             };
             };
             let body = lk.objToQueryStr(params);
             let body = lk.objToQueryStr(params);
             let url = {
             let url = {