|
|
@@ -230,6 +230,7 @@ async function trySynthesize() {
|
|
|
}
|
|
|
let willCount = getActivityWillCount();
|
|
|
let combinationLst = getSynthesizeCombination(retCvtData);
|
|
|
+ magicJS.logger.info(`combinationLst=${JSON.stringify(combinationLst)}`);
|
|
|
let nExcuteCount = Math.min(willCount, combinationLst.length);
|
|
|
let tipsText = `[${activityData.activityType}]${activityData.name},执行结果如下:\n`;
|
|
|
for (let i = 1; i <= nExcuteCount; i++) {
|
|
|
@@ -271,6 +272,8 @@ function getSynthesizeCombination(retCvtData) {
|
|
|
for (let i = 0; i < limitCountArr.length; i++) {
|
|
|
let oneList = goodsList[i];
|
|
|
let limitCount = limitCountArr[i];
|
|
|
+ magicJS.logger.info(`oneList:${JSON.stringify(oneList)}`);
|
|
|
+ magicJS.logger.info(`limitCount${limitCount}`);
|
|
|
if (oneList && limitCount <= oneList.length) {
|
|
|
let oneListSub = oneList.splice(oneList.length - limitCount, limitCount);
|
|
|
retOneList = retOneList.concat(oneListSub);
|