Commit edbd9ad0 authored by zhangjinzhou's avatar zhangjinzhou

名字空处理

parent 4036324b
...@@ -437,8 +437,12 @@ Page({ ...@@ -437,8 +437,12 @@ Page({
let nums = data[1]; let nums = data[1];
let aiwarm = data[2]; let aiwarm = data[2];
let othername = this.data.othername; let othername = this.data.othername;
let oname = othername[i];
if (!oname || oname.length < 1) {
oname = "玩家" + (i + 1);
}
if (type == "tool") { if (type == "tool") {
let itxt = othername[i] + "使用道具一次获得了" + toolwarm + "温暖值"; let itxt = oname + "使用道具一次获得了" + toolwarm + "温暖值";
this.addAttionTxt(itxt); this.addAttionTxt(itxt);
let inroomidx = i; let inroomidx = i;
let inwd = this.data.roomdata[inroomidx]["wd"]; let inwd = this.data.roomdata[inroomidx]["wd"];
...@@ -452,7 +456,7 @@ Page({ ...@@ -452,7 +456,7 @@ Page({
addwarm = taskwarm * nums; addwarm = taskwarm * nums;
} }
if (addwarm > 0 && nums > 0) { if (addwarm > 0 && nums > 0) {
let itxt = othername[i] + "完成了" + nums + "个任务,获得了" + addwarm + "温暖值"; let itxt = oname + "完成了" + nums + "个任务,获得了" + addwarm + "温暖值";
this.addAttionTxt(itxt); this.addAttionTxt(itxt);
let inroomidx = i; let inroomidx = i;
let inwd = this.data.roomdata[inroomidx]["wd"]; let inwd = this.data.roomdata[inroomidx]["wd"];
...@@ -462,7 +466,7 @@ Page({ ...@@ -462,7 +466,7 @@ Page({
} else if (type == "invite") { } else if (type == "invite") {
if (nums > 0) { if (nums > 0) {
let itxt = othername[i] + "邀请了" + nums + "位好友,获得了" + invitewarm * nums + "温暖值"; let itxt = oname + "邀请了" + nums + "位好友,获得了" + invitewarm * nums + "温暖值";
this.addAttionTxt(itxt); this.addAttionTxt(itxt);
let inroomidx = i; let inroomidx = i;
let inwd = this.data.roomdata[inroomidx]["wd"]; let inwd = this.data.roomdata[inroomidx]["wd"];
...@@ -490,7 +494,11 @@ Page({ ...@@ -490,7 +494,11 @@ Page({
let chatime = Math.ceil(Math.random() * 5) + 2; let chatime = Math.ceil(Math.random() * 5) + 2;
let itime1 = Number((Math.random() * chatime).toFixed(2)) * 1000; let itime1 = Number((Math.random() * chatime).toFixed(2)) * 1000;
setTimeout(() => { setTimeout(() => {
let itxt = othername[i] + "使用道具获得了" + toolwarm + "温暖值"; let oname = othername[i];
if (!oname || oname.length < 1) {
oname = "玩家" + (i + 1);
}
let itxt = oname + "使用道具获得了" + toolwarm + "温暖值";
this.addAttionTxt(itxt); this.addAttionTxt(itxt);
let inroomidx = i + 1; let inroomidx = i + 1;
let inwd = this.data.roomdata[inroomidx]["wd"]; let inwd = this.data.roomdata[inroomidx]["wd"];
...@@ -528,7 +536,11 @@ Page({ ...@@ -528,7 +536,11 @@ Page({
setTimeout(() => { setTimeout(() => {
// console.log("ai" + i + "使用道具升温暖"); // console.log("ai" + i + "使用道具升温暖");
let othername = this.data.othername let othername = this.data.othername
let itxt = othername[i] + "使用道具获得了" + toolwarm + "温暖值"; let oname = othername[i];
if (!oname || oname.length < 1) {
oname = "玩家" + (i + 1);
}
let itxt = oname+ "使用道具获得了" + toolwarm + "温暖值";
this.addAttionTxt(itxt); this.addAttionTxt(itxt);
let inroomidx = i + 1; let inroomidx = i + 1;
let inwd = this.data.roomdata[inroomidx]["wd"]; let inwd = this.data.roomdata[inroomidx]["wd"];
...@@ -554,9 +566,12 @@ Page({ ...@@ -554,9 +566,12 @@ Page({
let rangetime = Math.floor(Math.random() * (i1end - i1start)) + i1start; let rangetime = Math.floor(Math.random() * (i1end - i1start)) + i1start;
// console.log(rangetime); // console.log(rangetime);
setTimeout(() => { setTimeout(() => {
let oname = othername[i];
if (!oname || oname.length < 1) {
oname = "玩家" + (i + 1);
}
// console.log("ai" + i + "邀请好友升温暖"); // console.log("ai" + i + "邀请好友升温暖");
let itxt = othername[i] + "邀请了一位好友,获得了" + invitewarm + "温暖值"; let itxt = oname + "邀请了一位好友,获得了" + invitewarm + "温暖值";
this.addAttionTxt(itxt); this.addAttionTxt(itxt);
let inroomidx = i + 1; let inroomidx = i + 1;
let inwd = this.data.roomdata[inroomidx]["wd"]; let inwd = this.data.roomdata[inroomidx]["wd"];
...@@ -575,7 +590,11 @@ Page({ ...@@ -575,7 +590,11 @@ Page({
let i1end = (i1 + 1) * chatime - 5000; let i1end = (i1 + 1) * chatime - 5000;
let rangetime = Math.floor(Math.random() * (i1end - i1start)) + i1start; let rangetime = Math.floor(Math.random() * (i1end - i1start)) + i1start;
setTimeout(() => { setTimeout(() => {
let itxt = othername[i] + "完成了一个任务,获得了" + taskwarm + "温暖值"; let oname = othername[i];
if (!oname || oname.length < 1) {
oname = "玩家" + (i + 1);
}
let itxt = oname + "完成了一个任务,获得了" + taskwarm + "温暖值";
this.addAttionTxt(itxt); this.addAttionTxt(itxt);
let inroomidx = i + 1; let inroomidx = i + 1;
let inwd = this.data.roomdata[inroomidx]["wd"]; let inwd = this.data.roomdata[inroomidx]["wd"];
...@@ -683,9 +702,9 @@ Page({ ...@@ -683,9 +702,9 @@ Page({
step: step, step: step,
startime: startime, startime: startime,
endtime: endtime, endtime: endtime,
avatar2:avatar2, avatar2: avatar2,
avatar3:avatar3, avatar3: avatar3,
avatar4:avatar4, avatar4: avatar4,
othername: othername, othername: othername,
overequest: overequest, overequest: overequest,
hidetime: ntime, hidetime: ntime,
......
...@@ -39,7 +39,7 @@ export const modalType = { ...@@ -39,7 +39,7 @@ export const modalType = {
rankprize: 7 rankprize: 7
} }
//匹配用户名称 //匹配用户名称
export const gnickNames = ['往亊婼然落幕', '懒懒的感觉', '裸奔的蝸牛', '烟消云散', '覆手倾天下', '巫浅浅', '六味森林', '俯瞰星空', '清风挽笑', '闫雪如梦', '封存浮生', '暮烟疏雨', '古城萧笙', '无心木偶', '一代女皇', '叼辣条闯世界', '积攒一身酷', '好瘦的八戒啊', '幼儿园里最可爱', '奇葩朵朵向阳开', '兜兜里藏着糖', '专业灯泡', '美女哪里跑', '长得丑才活得久', '哈、猪都笑了', '月亮是我踹弯的', '男神学霸养成记', '时间煮酒我煮粥', '带翅膀的吸血鬼', '老子一身公主病', '打死你我也不说', '帅哥,麻烦借下肩膀', '仗着胸大说瞎话', '坐在坟头调戏鬼', '你丑到我了', '你丑别皱眉', '你若安好,哎呦卧槽', '天堂地址不详', '走路太妖会摔跤', '踏平女宿舍', '胸毛随风飘', '闷骚°是种气质美', '站住、给我一根辣条', '贫僧渡了你', '恋上猫的鱼', '小姐,你好胸哦', '骑着蚂蚁追大象', '骑驴闯红灯', '少年你这是喜脉', '蜗牛带我去散步', '一闪一闪亮光头', '骑鱼的猫', '按键伤人', '情场通缉犯', '吃饱辣条压压惊', '吃货最怕做饿梦', '变身吧,挖掘机', '把我打包带走吧', '贱到爆炸', '女娲补锅', '骑乌龟逗风', '骑驴撞豆腐', '你挡着我发光了', '漫步黄泉路', '待我发光闪瞎你', '膀大腰圆小清新', '学渣这厢有礼了', '官方小可爱', '进击的学渣', '别摸我的婴儿肥', '皇上您这是喜脉啊', '奇葩奇葩蹦擦擦', '苞米地里斗地主', '壮士别打我', '美女所见略同', '多跳跳能长高', '此男子很猥琐', '好人一生平胸', '月亮供电不足', '毕竟我辣么酷', '两包辣条约吗', '奶嘴还我初吻', '女施主请自重', '香蕉你个麻辣', '城里人真会玩', '很有粪量的人', '天线短路宝宝', '懒癌扩散全身', '牵猫散步的鱼', '别打我会自爆', '被判无妻徒刑', '千年难得一贱', '长得丑活得久', '幼儿园扛把子', '甜的一本正经', '朕要上房揭瓦', '五品带砖侍卫', '乖一点就抱你', '我中桃花运了', '裸奔的毛毛虫', '屁股大坐天下', '来一碗小仙女', '吃素的食人鱼', '幼稚园大姐大', '我姓王在隔壁', '官方认证逗比', '放个屁给你闻', '姐比朝鲜还潮', '不吃药继续闹', '因太萌被开除', '夜寒不宜裸奔', '颤抖吧凡人们', '骑毛驴追飞机', '作业休得胡闹', '老衲法号帅哥', '大叔的仙女棒', '从饿梦中惊醒', '花落人断肠', '一夜听春雨', '花影上纱窗', '黯夜的忧雨', '一曲冷凌霜', '骑驴撞豆腐', '岁月成沧海', '娇腿绕腰肢', '折翅的天使', '浅笑倾城泪', '平底锅大王', '浅若梨花笑', '彼岸烟花美', '一瞬间回眸', '眸光似星辰', '人逝花落空', '傲剑笑九州', '独揽清风醉', '行为艺术家', '曲折的忧伤', '夏雨别夕庭', '孤灯心事漏', '飞逝的流水', '倾夏暖桑榆', '佛魔两地间', '海尽头是天', '回忆的天空', '刺心哋浮華', '软萌嘤嘤嘤', '帅死你个萌', '封刀不在战', '眉目亦如画', '灵魂检察官', '眠意寄秋风', '陽光不見了', '星星的軌跡', '森林不绿兮', '流失的叛逆', '櫻花酱萌妹', '寂寞的花开', '流年已成殇', '今生忆凉薄','bleach 死神','','Jar of love','','永恒 Eternally','','Agoni°▍べ[小肆]','','Fu2k *=','','﹑Bc,','','You left me','','Dandelion°','','半生毁°- relead','','SUnBoC : 夏日杏花','','Only care (只是在乎)','','Hopeless(绝望)','','花未眠丶Fchen','','moment°疯掉的记忆','','catastrophe 浩劫.','','Moment°-流年骚年','','Super_man','','Temptation 无奈 ▼','','laugh line 笑纹','','死神少女 Pansy','','ReLucTant tO LeAve','','Cindy小萝莉','','-无心 Foam','','Full丶House','','Calm187.','','D3ath” -亡魂▍','','B52° Reen','','Luminous(夜光)','','BB、小蘑菇','','My her i My he i','','Rian Sub','','_promise','','MichiGO','','摧毁Easy。','','My↘徦-媔倶','','單身yě不錯','','Je t’aime','','Time lover(时间恋人)','','恶灵空间 Theevilspirit','','LOSER','','Unique▼ 唯一o','','Really myself 真的自己','','Tears smile。笑着哭','','哭脸、you','','Freedom丶自由','','twel2e','','Sweet1314','','hone6s','','Ambiguous122','Ins1789522omnia','E672837XIST','Pei0199374ntre','Labyr44283inth','Unio','1345Bear','12485Friend','So5ut1hC55ity','Pass123by'] export const gnickNames = ['往亊婼然落幕', '懒懒的感觉', '裸奔的蝸牛', '烟消云散', '覆手倾天下', '巫浅浅', '六味森林', '俯瞰星空', '清风挽笑', '闫雪如梦', '封存浮生', '暮烟疏雨', '古城萧笙', '无心木偶', '一代女皇', '叼辣条闯世界', '积攒一身酷', '好瘦的八戒啊', '幼儿园里最可爱', '奇葩朵朵向阳开', '兜兜里藏着糖', '专业灯泡', '美女哪里跑', '长得丑才活得久', '哈、猪都笑了', '月亮是我踹弯的', '男神学霸养成记', '时间煮酒我煮粥', '带翅膀的吸血鬼', '老子一身公主病', '打死你我也不说', '帅哥,麻烦借下肩膀', '仗着胸大说瞎话', '坐在坟头调戏鬼', '你丑到我了', '你丑别皱眉', '你若安好,哎呦卧槽', '天堂地址不详', '走路太妖会摔跤', '踏平女宿舍', '胸毛随风飘', '闷骚°是种气质美', '站住、给我一根辣条', '贫僧渡了你', '恋上猫的鱼', '小姐,你好胸哦', '骑着蚂蚁追大象', '骑驴闯红灯', '少年你这是喜脉', '蜗牛带我去散步', '一闪一闪亮光头', '骑鱼的猫', '按键伤人', '情场通缉犯', '吃饱辣条压压惊', '吃货最怕做饿梦', '变身吧,挖掘机', '把我打包带走吧', '贱到爆炸', '女娲补锅', '骑乌龟逗风', '骑驴撞豆腐', '你挡着我发光了', '漫步黄泉路', '待我发光闪瞎你', '膀大腰圆小清新', '学渣这厢有礼了', '官方小可爱', '进击的学渣', '别摸我的婴儿肥', '皇上您这是喜脉啊', '奇葩奇葩蹦擦擦', '苞米地里斗地主', '壮士别打我', '美女所见略同', '多跳跳能长高', '此男子很猥琐', '好人一生平胸', '月亮供电不足', '毕竟我辣么酷', '两包辣条约吗', '奶嘴还我初吻', '女施主请自重', '香蕉你个麻辣', '城里人真会玩', '很有粪量的人', '天线短路宝宝', '懒癌扩散全身', '牵猫散步的鱼', '别打我会自爆', '被判无妻徒刑', '千年难得一贱', '长得丑活得久', '幼儿园扛把子', '甜的一本正经', '朕要上房揭瓦', '五品带砖侍卫', '乖一点就抱你', '我中桃花运了', '裸奔的毛毛虫', '屁股大坐天下', '来一碗小仙女', '吃素的食人鱼', '幼稚园大姐大', '我姓王在隔壁', '官方认证逗比', '放个屁给你闻', '姐比朝鲜还潮', '不吃药继续闹', '因太萌被开除', '夜寒不宜裸奔', '颤抖吧凡人们', '骑毛驴追飞机', '作业休得胡闹', '老衲法号帅哥', '大叔的仙女棒', '从饿梦中惊醒', '花落人断肠', '一夜听春雨', '花影上纱窗', '黯夜的忧雨', '一曲冷凌霜', '骑驴撞豆腐', '岁月成沧海', '娇腿绕腰肢', '折翅的天使', '浅笑倾城泪', '平底锅大王', '浅若梨花笑', '彼岸烟花美', '一瞬间回眸', '眸光似星辰', '人逝花落空', '傲剑笑九州', '独揽清风醉', '行为艺术家', '曲折的忧伤', '夏雨别夕庭', '孤灯心事漏', '飞逝的流水', '倾夏暖桑榆', '佛魔两地间', '海尽头是天', '回忆的天空', '刺心哋浮華', '软萌嘤嘤嘤', '帅死你个萌', '封刀不在战', '眉目亦如画', '灵魂检察官', '眠意寄秋风', '陽光不見了', '星星的軌跡', '森林不绿兮', '流失的叛逆', '櫻花酱萌妹', '寂寞的花开', '流年已成殇', '今生忆凉薄', 'bleach 死神', 'Jar of love', '永恒 Eternally', 'Agoni°▍べ[小肆]', 'Fu2k *=', '﹑Bc,', 'You left me', 'Dandelion°', '半生毁°- relead', 'SUnBoC : 夏日杏花', 'Only care (只是在乎)', 'Hopeless(绝望)', '花未眠丶Fchen', 'moment°疯掉的记忆', 'catastrophe 浩劫.', 'Moment°-流年骚年', 'Super_man', 'Temptation 无奈 ▼', 'laugh line 笑纹', '死神少女 Pansy', 'ReLucTant tO LeAve', 'Cindy小萝莉', '-无心 Foam', 'Full丶House', 'Calm187.', 'D3ath” -亡魂▍', 'B52° Reen', 'Luminous(夜光)', 'BB、小蘑菇', 'My her i My he i', 'Rian Sub', '_promise', 'MichiGO', '摧毁Easy。', 'My↘徦-媔倶', '單身yě不錯', 'Je t’aime', 'Time lover(时间恋人)', '恶灵空间 Theevilspirit', 'LOSER', 'Unique▼ 唯一o', 'Really myself 真的自己', 'Tears smile。笑着哭', '哭脸、you', 'Freedom丶自由', 'twel2e', 'Sweet1314', 'hone6s', 'Ambiguous122', 'Ins1789522omnia', 'E672837XIST', 'Pei0199374ntre', 'Labyr44283inth', 'Unio', '1345Bear', '12485Friend', 'So5ut1hC55ity', 'Pass123by']
export const gavatars = { export const gavatars = {
'27a5ac62-66de-4ed3-a7be-006615103e8d': { '27a5ac62-66de-4ed3-a7be-006615103e8d': {
name: '八', name: '八',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment