Authored by 陈峰

fix

... ... @@ -44,7 +44,7 @@ module.exports = {
codeGain(req, res, next) {
let params = req.body;
if (!params.uid || !params.actPrizeId || !params.userName || !params.userThumb) {
if (!params.uid || !params.actPrizeId || !params.userName) {
logger.error(`用户参数错误:${JSON.stringify(params)}`);
return res.json({
code: 400,
... ...
... ... @@ -269,10 +269,10 @@ module.exports = class extends global.yoho.BaseModel {
getCodeRecent(actPrizeId, actId) {
actId = parseInt(actId, 10) || 0;
let where = '';
let where = ' and user_name <> \'\' and user_thumb <> \'\'';
if (actPrizeId) {
where = ' and act_prize_id = :actPrizeId';
where += ' and act_prize_id = :actPrizeId';
}
return mysqlCli.query(`select uid, user_name, user_thumb, create_time
... ...