|
|
@@ -519,6 +519,7 @@ async function getCompositeMaterial(taskId, taskInfo) {
|
|
|
async function getDetailByCasting(castingId, collectionName, pageSize = 50, page = 1) {
|
|
|
return new Promise((resolve, _reject) => {
|
|
|
try {
|
|
|
+ lk.log("ttttttttttttttt#1")
|
|
|
const headers = GCommonGandartHeads;
|
|
|
headers['Host'] = 'api.gandart.com';
|
|
|
headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
|
|
|
@@ -527,9 +528,13 @@ async function getDetailByCasting(castingId, collectionName, pageSize = 50, page
|
|
|
page: page,
|
|
|
pageSize: pageSize,
|
|
|
};
|
|
|
+ lk.log("ttttttttttttttt#2")
|
|
|
let signData = getSign();
|
|
|
+ lk.log("ttttttttttttttt#3")
|
|
|
signData = Object.assign(signData, params);
|
|
|
+ lk.log("ttttttttttttttt#4")
|
|
|
let body = lk.objToQueryStr(signData);
|
|
|
+ lk.log("ttttttttttttttt#5")
|
|
|
let url = {
|
|
|
url: `${config.SALE_API}/composite/getDetailByCasting?${lk.objToQueryStr(params)}`,
|
|
|
headers: headers,
|
|
|
@@ -684,7 +689,7 @@ function getCollectionMInfoById(castingId) {
|
|
|
}
|
|
|
}
|
|
|
} catch (error) {
|
|
|
- lk.log(JSON.stringify(error));
|
|
|
+ lk.logErr(error);
|
|
|
}
|
|
|
return ret;
|
|
|
}
|