|
@@ -269,10 +269,10 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -269,10 +269,10 @@ module.exports = class extends global.yoho.BaseModel { |
269
|
getCodeRecent(actPrizeId, actId) {
|
269
|
getCodeRecent(actPrizeId, actId) {
|
270
|
actId = parseInt(actId, 10) || 0;
|
270
|
actId = parseInt(actId, 10) || 0;
|
271
|
|
271
|
|
272
|
- let where = '';
|
272
|
+ let where = ' and user_name <> \'\' and user_thumb <> \'\'';
|
273
|
|
273
|
|
274
|
if (actPrizeId) {
|
274
|
if (actPrizeId) {
|
275
|
- where = ' and act_prize_id = :actPrizeId';
|
275
|
+ where += ' and act_prize_id = :actPrizeId';
|
276
|
}
|
276
|
}
|
277
|
|
277
|
|
278
|
return mysqlCli.query(`select uid, user_name, user_thumb, create_time
|
278
|
return mysqlCli.query(`select uid, user_name, user_thumb, create_time
|