redis配置错误
This commit is contained in:
@@ -63,7 +63,7 @@ module.exports = {
|
||||
'sq4': {
|
||||
'mongo': 'mongodb://dbop:zyzSQ42022@dds-8vb11ca8d5e88fd41.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vb11ca8d5e88fd42.mongodb.zhangbei.rds.aliyuncs.com:3717/zyz?replicaSet=mgset-510489410',
|
||||
'gmmongo': 'mongodb://dbop:zyzSQGm2021@dds-8vb5de93552a67941.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vb5de93552a67942.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vb5de93552a67943.mongodb.zhangbei.rds.aliyuncs.com:3717/zyzgm?readPreference=secondary&replicaSet=mgset-508112742',
|
||||
'redis': 'r-8vb9q6zk7bpcvo456g.redis.zhangbei.rds.aliyuncs.com:6379',
|
||||
'redis': 'r-8vb9q6zk7bpcvo456g.redis.zhangbei.rds.aliyuncs.com',
|
||||
'redispw': 'X9j2TKYy@cE6sSQD'
|
||||
},
|
||||
};
|
||||
@@ -17,7 +17,7 @@ export default (appInfo: EggAppInfo) => {
|
||||
};
|
||||
|
||||
config.redis = {
|
||||
url: 'r-8vb9q6zk7bpcvo456g.redis.zhangbei.rds.aliyuncs.com:6379', // 内网
|
||||
url: 'r-8vb9q6zk7bpcvo456g.redis.zhangbei.rds.aliyuncs.com', // 内网
|
||||
pw: 'X9j2TKYy@cE6sSQD'
|
||||
};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { prop, mongoose, Ref } from '@typegoose/typegoose';
|
||||
import { DicWarJson } from '../pubUtils/dictionary/DicWarJson';
|
||||
import Hero, { HeroType } from '../db/Hero';
|
||||
import Hero, { HeroType, Talent } from '../db/Hero';
|
||||
import { nowSeconds } from '../pubUtils/timeUtil';
|
||||
import { DicHero } from '../pubUtils/dictionary/DicHero';
|
||||
|
||||
@@ -28,6 +28,8 @@ export class PvpHeroInfo {
|
||||
colorStar?: number = 0; // 觉醒
|
||||
@prop({ required: false })
|
||||
quality?: number = 0; // 品质
|
||||
@prop({ required: false })
|
||||
talent?: Talent[] = []; // 品质
|
||||
|
||||
@prop({ required: true, _id: false })
|
||||
attribute?: string; // 属性
|
||||
@@ -40,6 +42,8 @@ export class PvpHeroInfo {
|
||||
this.lv = hero.lv;
|
||||
this.colorStar = hero.colorStar;
|
||||
this.quality = hero.quality;
|
||||
let skin = hero.skins?.find(cur => cur.enable);
|
||||
if(skin) this.talent = skin.talent;
|
||||
}
|
||||
|
||||
setRobotInfo(dicHero: DicHero, lv: number) {
|
||||
@@ -130,6 +134,8 @@ export class PvpEnemies extends Enemies {
|
||||
lv: number;
|
||||
@prop({ required: true })
|
||||
score: number;
|
||||
@prop({ required: true })
|
||||
talent: Talent[];
|
||||
|
||||
// score: 这个武将的军功
|
||||
constructor(warjson: DicWarJson, heroInfo: PvpHeroInfo, score: number, ce: number) {
|
||||
@@ -139,6 +145,7 @@ export class PvpEnemies extends Enemies {
|
||||
this.quality = heroInfo.quality;
|
||||
this.lv = heroInfo.lv;
|
||||
this.score = score;
|
||||
this.talent = heroInfo.talent;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ export default (appInfo: EggAppInfo) => {
|
||||
options: { useNewUrlParser: true, useUnifiedTopology: true },
|
||||
};
|
||||
config.redis = {
|
||||
url: 'r-8vb9q6zk7bpcvo456g.redis.zhangbei.rds.aliyuncs.com:6379', // 内网
|
||||
url: 'r-8vb9q6zk7bpcvo456g.redis.zhangbei.rds.aliyuncs.com', // 内网
|
||||
pw: 'X9j2TKYy@cE6sSQD'
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user