Authored by 陈峰

fix

@@ -44,7 +44,7 @@ module.exports = { @@ -44,7 +44,7 @@ module.exports = {
44 codeGain(req, res, next) { 44 codeGain(req, res, next) {
45 let params = req.body; 45 let params = req.body;
46 46
47 - if (!params.uid || !params.actPrizeId || !params.userName || !params.userThumb) { 47 + if (!params.uid || !params.actPrizeId || !params.userName) {
48 logger.error(`用户参数错误:${JSON.stringify(params)}`); 48 logger.error(`用户参数错误:${JSON.stringify(params)}`);
49 return res.json({ 49 return res.json({
50 code: 400, 50 code: 400,
@@ -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