|
@@ -301,7 +301,7 @@ async function getAllMyCastingList() {
|
|
|
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 && detail.list) {
|
|
if (detail && detail.list) {
|
|
|
- castingLst = castingLst.concat(detail.list)
|
|
|
|
|
|
|
+ castingLst = castingLst.concat(detail.rows);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return castingLst;
|
|
return castingLst;
|
|
@@ -312,12 +312,7 @@ async function getMyCastingData(page, pageSize = 10) {
|
|
|
try {
|
|
try {
|
|
|
const headers = GCommonGandartHeads;
|
|
const headers = GCommonGandartHeads;
|
|
|
headers.Host = "api.gandart.com";
|
|
headers.Host = "api.gandart.com";
|
|
|
- let params = {
|
|
|
|
|
- page: page,
|
|
|
|
|
- pageSize: pageSize,
|
|
|
|
|
- collectionName: '',
|
|
|
|
|
- };
|
|
|
|
|
- let body = lk.objToQueryStr(params);
|
|
|
|
|
|
|
+ let body = `page=${page}&pageSize=${pageSize}&collectionName=`;
|
|
|
let url = {
|
|
let url = {
|
|
|
url: `${config.BASE_API}/v2/order/nftorder/selectCollection`,
|
|
url: `${config.BASE_API}/v2/order/nftorder/selectCollection`,
|
|
|
headers: headers,
|
|
headers: headers,
|