全局:清理部分console
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 } })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user