|
@@ -10,6 +10,7 @@
|
|
|
const imType = require('../const/tender').imType;
|
|
|
const defaultFunRela = {
|
|
|
banOver: true,
|
|
|
+ hintOver: true,
|
|
|
imType: imType.zl.value,
|
|
|
};
|
|
|
const sjsRelaConst = require('../const/setting').sjsRela;
|
|
@@ -52,7 +53,8 @@ module.exports = app => {
|
|
|
case 'fun':
|
|
|
rule = {
|
|
|
imType: {type: 'enum', values: [imType.tz.value, imType.zl.value, imType.bb.value, imType.bw.value], required: true},
|
|
|
- banOver: {type: 'bool', required: true,}
|
|
|
+ banOver: {type: 'bool', required: true,},
|
|
|
+ hintOver: {type: 'bool', required: true,}
|
|
|
};
|
|
|
break;
|
|
|
default:
|
|
@@ -157,7 +159,10 @@ module.exports = app => {
|
|
|
|
|
|
async updateFunRela(id, data) {
|
|
|
const result = await this.db.update(this.tableName, {
|
|
|
- id: id, fun_rela: JSON.stringify({banOver: data.banOver, imType: data.imType}),
|
|
|
+ id: id, fun_rela: JSON.stringify({
|
|
|
+ banOver: data.banOver, hintOver: data.hintOver,
|
|
|
+ imType: data.imType
|
|
|
+ }),
|
|
|
});
|
|
|
return result.affectedRows === 1;
|
|
|
}
|