Ver Fonte

增加qq平台的 构建

dw_yinsong há 6 anos atrás
pai
commit
f58a981f5e

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
assets/scripts/data/mainTask.js


+ 1 - 1
assets/scripts/data/skillInfo.js

@@ -1 +1 @@
-module.exports=[{"skillId":1,"type":1,"buildingLevel":100,"maxLevel":21,"bonus":{"10001":0},"name":"招财进宝","desc":"5分钟每秒自动点击10次","infoDesc":"每秒自动点击{num}次","infoIcon":900006},{"skillId":2,"type":1,"buildingLevel":300,"maxLevel":21,"bonus":{"10001":0},"name":"天降财星","desc":"立即获得每次点击产出金币的5000倍","infoDesc":"获得金币${num}*${num}","infoIcon":900007},{"skillId":3,"type":1,"buildingLevel":500,"maxLevel":21,"bonus":{"10001":0},"name":"鸿运当头","desc":"5分钟内所有金币产出提升500%","infoDesc":"所有金币产出提升{num}%","infoIcon":900008},{"skillId":4,"type":2,"buildingLevel":0,"maxLevel":20,"bonus":{"10002":300},"name":"八方来财","desc":"每分钟自动点击30次(永久性)","infoIcon":0},{"skillId":5,"type":2,"buildingLevel":500,"maxLevel":20,"bonus":{"10002":300},"name":"财运亨通","desc":"每次点击产出的金币提升110%","infoIcon":0},{"skillId":6,"type":2,"buildingLevel":500,"maxLevel":10,"bonus":{"10002":500},"name":"步步高升","desc":"技能冷却时间减少5%","infoIcon":0}]
+module.exports=[{"skillId":1,"type":1,"buildingLevel":100,"maxLevel":21,"bonus":{"10001":0},"name":"招财进宝","desc":"5分钟每秒自动点击10次","infoDesc":"每秒自动点击{num}次","infoIcon":900006},{"skillId":2,"type":1,"buildingLevel":300,"maxLevel":21,"bonus":{"10001":0},"name":"天降财星","desc":"立即获得每次点击产出金币的5000倍","infoDesc":"获得金币${num}*${num}","infoIcon":900007},{"skillId":3,"type":1,"buildingLevel":500,"maxLevel":21,"bonus":{"10001":0},"name":"鸿运当头","desc":"5分钟内所有金币产出提升500%","infoDesc":"所有金币产出提升${num}%","infoIcon":900008},{"skillId":4,"type":2,"buildingLevel":0,"maxLevel":20,"bonus":{"10002":300},"name":"八方来财","desc":"每分钟自动点击30次(永久性)","infoIcon":0},{"skillId":5,"type":2,"buildingLevel":500,"maxLevel":20,"bonus":{"10002":300},"name":"财运亨通","desc":"每次点击产出的金币提升110%","infoIcon":0},{"skillId":6,"type":2,"buildingLevel":500,"maxLevel":10,"bonus":{"10002":500},"name":"步步高升","desc":"技能冷却时间减少5%","infoIcon":0}]

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
assets/scripts/data/skillLevel.js


+ 16 - 1
tools/config.js

@@ -41,9 +41,24 @@ const ReplSetConf = {
     }
 }
 
+const QQReplSetConf = {
+    R1 : {
+        servers: [
+            "58.215.52.59:10003",
+            "58.215.52.21:10002",
+            "14.215.104.240:10003"
+        ],
+        username: "taptapstarqq_mongo_rw",
+        password: "gW0CxPhL6I56",
+        replicaSet: "taptapstarqqmongo",
+        dbname: "taptapstarqq_mongo"
+    }
+}
+
 module.exports = {
     RedisConf,
     CommonConf,
     MongoConf,
-    ReplSetConf
+    ReplSetConf,
+	QQReplSetConf
 }

+ 16 - 2
tools/mongo.js

@@ -2,13 +2,27 @@ const fs = require('fs')
 const path = require('path')
 const XLSX = require('xlsx')
 // const Rsync = require('rsync')
-const {MongoConf, ReplSetConf} = require('./config')
+const {MongoConf, ReplSetConf,QQReplSetConf} = require('./config')
 
 const MongoClient = require('mongodb').MongoClient
 
 console.log(process.env.NODE_ENV);
 var dbIns, connStr , connOpt;
-if(process.env.NODE_ENV == 'production') {
+if(process.env.NODE_ENV == 'qq') {
+    // 正式环境
+    dbIns = QQReplSetConf['R1']
+    connStr = `mongodb://${dbIns.servers.join(',')}`
+    connOpt = {
+        auth : {
+            user: dbIns.username,
+            password: dbIns.password,
+        },
+        replicaSet: dbIns.replicaSet,
+        authSource: dbIns.dbname,
+        authMechanism: "SCRAM-SHA-1",
+        useNewUrlParser: true
+    }
+}else if(process.env.NODE_ENV == 'production') {
     // 正式环境
     dbIns = ReplSetConf['R1']
     connStr = `mongodb://${dbIns.servers.join(',')}`

+ 1 - 0
tools/package.json

@@ -9,6 +9,7 @@
     "mongo": "cross-env NODE_ENV=test node mongo.js",
     "mongo:test": "cross-env NODE_ENV=test node mongo.js",
     "mongo:prod": "cross-env NODE_ENV=production node mongo.js",
+    "mongo:qq": "cross-env NODE_ENV=qq node mongo.js",
     "local": "node local.js"
   },
   "author": "",

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
tools/sheet/mainTask.json


+ 1 - 1
tools/sheet/skillInfo.json

@@ -1 +1 @@
-[{"skillId":1,"type":1,"buildingLevel":100,"maxLevel":21,"bonus":{"10001":0},"name":"招财进宝","desc":"5分钟每秒自动点击10次","infoDesc":"每秒自动点击{num}次","infoIcon":900006},{"skillId":2,"type":1,"buildingLevel":300,"maxLevel":21,"bonus":{"10001":0},"name":"天降财星","desc":"立即获得每次点击产出金币的5000倍","infoDesc":"获得金币${num}*${num}","infoIcon":900007},{"skillId":3,"type":1,"buildingLevel":500,"maxLevel":21,"bonus":{"10001":0},"name":"鸿运当头","desc":"5分钟内所有金币产出提升500%","infoDesc":"所有金币产出提升{num}%","infoIcon":900008},{"skillId":4,"type":2,"buildingLevel":0,"maxLevel":20,"bonus":{"10002":300},"name":"八方来财","desc":"每分钟自动点击30次(永久性)","infoIcon":0},{"skillId":5,"type":2,"buildingLevel":500,"maxLevel":20,"bonus":{"10002":300},"name":"财运亨通","desc":"每次点击产出的金币提升110%","infoIcon":0},{"skillId":6,"type":2,"buildingLevel":500,"maxLevel":10,"bonus":{"10002":500},"name":"步步高升","desc":"技能冷却时间减少5%","infoIcon":0}]
+[{"skillId":1,"type":1,"buildingLevel":100,"maxLevel":21,"bonus":{"10001":0},"name":"招财进宝","desc":"5分钟每秒自动点击10次","infoDesc":"每秒自动点击{num}次","infoIcon":900006},{"skillId":2,"type":1,"buildingLevel":300,"maxLevel":21,"bonus":{"10001":0},"name":"天降财星","desc":"立即获得每次点击产出金币的5000倍","infoDesc":"获得金币${num}*${num}","infoIcon":900007},{"skillId":3,"type":1,"buildingLevel":500,"maxLevel":21,"bonus":{"10001":0},"name":"鸿运当头","desc":"5分钟内所有金币产出提升500%","infoDesc":"所有金币产出提升${num}%","infoIcon":900008},{"skillId":4,"type":2,"buildingLevel":0,"maxLevel":20,"bonus":{"10002":300},"name":"八方来财","desc":"每分钟自动点击30次(永久性)","infoIcon":0},{"skillId":5,"type":2,"buildingLevel":500,"maxLevel":20,"bonus":{"10002":300},"name":"财运亨通","desc":"每次点击产出的金币提升110%","infoIcon":0},{"skillId":6,"type":2,"buildingLevel":500,"maxLevel":10,"bonus":{"10002":500},"name":"步步高升","desc":"技能冷却时间减少5%","infoIcon":0}]

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
tools/sheet/skillLevel.json


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff