|
@@ -222,7 +222,8 @@ async function trySynthesize() {
|
|
|
if (!activityData) {
|
|
if (!activityData) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- let retCvtData = await getCvtGoodsList(activityData.hashIdId || activityData.activityId, true);
|
|
|
|
|
|
|
+ let activityId = activityData.hashId || activityData.activityId;
|
|
|
|
|
+ let retCvtData = await getCvtGoodsList(activityId, true);
|
|
|
magicJS.logger.info(`retCvtData=${JSON.stringify(retCvtData)}`);
|
|
magicJS.logger.info(`retCvtData=${JSON.stringify(retCvtData)}`);
|
|
|
if (!retCvtData) {
|
|
if (!retCvtData) {
|
|
|
return;
|
|
return;
|
|
@@ -234,7 +235,7 @@ async function trySynthesize() {
|
|
|
for (let i = 1; i <= nExcuteCount; i++) {
|
|
for (let i = 1; i <= nExcuteCount; i++) {
|
|
|
let oneCombination = combinationLst[i];
|
|
let oneCombination = combinationLst[i];
|
|
|
let goodsList = getCombinationGoodsList(oneCombination);
|
|
let goodsList = getCombinationGoodsList(oneCombination);
|
|
|
- let retData = await doCreateConvertOrder(activityData.hashId, goodsList);
|
|
|
|
|
|
|
+ let retData = await doCreateConvertOrder(activityId, goodsList);
|
|
|
let errMsg = '';
|
|
let errMsg = '';
|
|
|
if (retData && retData.code == 200) {
|
|
if (retData && retData.code == 200) {
|
|
|
errMsg = `序号[${i}]兑换成功`;
|
|
errMsg = `序号[${i}]兑换成功`;
|