Commit b347912e authored by 任国军's avatar 任国军

fix cat empty

parent 09cd970f
Pipeline #16523 passed with stage
in 49 seconds
...@@ -314,7 +314,7 @@ class InstitutionSubService extends Service { ...@@ -314,7 +314,7 @@ class InstitutionSubService extends Service {
// 格式化机构分类(展示一级分类) // 格式化机构分类(展示一级分类)
let cats = []; let cats = [];
for (const v of institutionCats) { for (const v of institutionCats) {
if (v.institution_id === institutionList[i].id) { if (v.institution_id === institutionList[i].id && catList[v.cat_id]) {
if (catList[v.cat_id].parent_id === 0) { if (catList[v.cat_id].parent_id === 0) {
cats.push(v.cat_id); cats.push(v.cat_id);
} else { } else {
......
...@@ -103,7 +103,7 @@ module.exports = appInfo => { ...@@ -103,7 +103,7 @@ module.exports = appInfo => {
// other sequelize configurations // other sequelize configurations
dialect: 'mysql', dialect: 'mysql',
host: 'rm-bp1mnwmta5778y0d3jo.mysql.rds.aliyuncs.com', host: 'rm-bp1mnwmta5778y0d3jo.mysql.rds.aliyuncs.com',
database: 'class_dev', database: 'class_uat',
username: 'class_testing', username: 'class_testing',
password: 'WV862L32451I6KD58tU9K', password: 'WV862L32451I6KD58tU9K',
port: 3306, port: 3306,
......
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