Commit cc34b64f by 王昆

Merge branch 'engine-product' of gitlab.gongsibao.com:jiangyong/zhichan into engine-product

parents 81218644 a6c22458
...@@ -46,7 +46,6 @@ class ProductService extends ServiceBase { ...@@ -46,7 +46,6 @@ class ProductService extends ServiceBase {
}) })
for (let j = 0; j <= resItem.length; ++j) { for (let j = 0; j <= resItem.length; ++j) {
console.log(resItem[j])
if (resItem[j] && resItem[j].price && resItem[j].price > 0) { if (resItem[j] && resItem[j].price && resItem[j].price > 0) {
resItem[j].price = resItem[j].price / 100 resItem[j].price = resItem[j].price / 100
} }
......
var settings={ var settings = {
redis:{ redis: {
host: "43.247.184.32", host: "43.247.184.32",
port: 8967, port: 8967,
password: "Gongsibao2018", password: "Gongsibao2018",
db:10, db: 10,
}, },
database:{ database: {
dbname : "engine-product", dbname: "engine-product",
user: "write", user: "write",
password: "write", password: "write",
config: { config: {
...@@ -16,22 +16,25 @@ var settings={ ...@@ -16,22 +16,25 @@ var settings={
port: 8899, port: 8899,
dialect: 'mysql', dialect: 'mysql',
operatorsAliases: false, operatorsAliases: false,
pool: { pool: {
max: 5, max: 5,
min: 0, min: 0,
acquire: 90000000, acquire: 90000000,
idle: 1000000 idle: 1000000
}, },
debug:false, debug: false,
dialectOptions:{ timezone: '+08:00',
requestTimeout: 999999, dialectOptions: {
// instanceName:'DEV' dateStrings: true,
} //设置MSSQL超时时间 typeCast: true,
} requestTimeout: 999999,
}, // instanceName:'DEV'
reqEsDevUrl:"http://192.168.4.249:9200/", } //设置MSSQL超时时间
reqHomePageDevUrl:"http://sj.app.com:3002/", }
reqAuthUrl:"http://sj.app.com:3002/auth" },
reqEsDevUrl: "http://192.168.4.249:9200/",
reqHomePageDevUrl: "http://sj.app.com:3002/",
reqAuthUrl: "http://sj.app.com:3002/auth"
}; };
module.exports = settings; module.exports = settings;
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