Authored by yyq

fix typr

@@ -129,7 +129,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -129,7 +129,7 @@ module.exports = class extends global.yoho.BaseModel {
129 129
130 let where = ''; 130 let where = '';
131 131
132 - if (extra.type) { 132 + if (+extra.type) {
133 where = '(p.status = 2 or (p.is_full = 0 and p.end_time <= :now))'; 133 where = '(p.status = 2 or (p.is_full = 0 and p.end_time <= :now))';
134 } else { 134 } else {
135 where = 'p.status < 2 and (p.is_full > 0 != p.end_time > :now)'; 135 where = 'p.status < 2 and (p.is_full > 0 != p.end_time > :now)';