全局:清理部分console

This commit is contained in:
luying
2021-04-13 17:30:51 +08:00
parent 4d14bc2676
commit 95adc48d2a
20 changed files with 25 additions and 28 deletions

View File

@@ -64,8 +64,8 @@ export async function vidHttpRequest(addr: string, body: any) {
let res = await request(options);
let check = checkSign(res);
if(!check) return false;
console.log('*****request result*****');
console.log(JSON.stringify(res));
// console.log('*****request result*****');
// console.log(JSON.stringify(res));
return res;
} catch(e) {
console.error(e);

View File

@@ -289,7 +289,7 @@ export function calHeroStarIncAttr(originHero: HeroType, update: HeroUpdate, typ
const isWake = colorStar > 0; // 是否觉醒,只要激活了觉醒,彩星就会 > 1
const isFirstWake = colorStar > 0 && originColorStar <= 0; // 是否是初次觉醒
const isUpStar = originStar != star || originColorStar != colorStar; // 是否有升星
console.log('*isUpstar', isUpStar, originStar, star, originColorStar, colorStar)
// console.log('*isUpstar', isUpStar, originStar, star, originColorStar, colorStar)
const dicStar = isWake ? getHeroWakeByQuality(dicHero.quality, originColorStar) : getHeroStarByQuality(quality, originStar); // 星级表
@@ -738,7 +738,7 @@ export function calHeroEquipIncAttr(hero: HeroType) {
let attr = (value1 + lv * valueup) * (HERO_CE_RATIO + valueRefine) + valueJewel * HERO_CE_RATIO;
if(attr > 0) {
console.log('装备战力:', i, attr);
// console.log('装备战力:', i, attr);
updateHeroAttr(heroAttrs, i, { set: { equipUp: attr } })
}
}

View File

@@ -30,7 +30,7 @@ export function aesEncryptcfb(data, key, iv) {
const cipher = crypto.createCipheriv('aes-192-cfb', key, iv);
let crypted = cipher.update(data, 'utf8', 'hex');
crypted += cipher.final('hex');
console.log('****aesEncryptcfb', data, crypted)
// console.log('****aesEncryptcfb', data, crypted)
return crypted;
}