...
|
...
|
@@ -44,7 +44,10 @@ module.exports = { |
|
|
codeGain(req, res, next) {
|
|
|
let params = req.body;
|
|
|
|
|
|
if (!params.uid || !params.actPrizeId || !params.userName || !params.userThumb) {
|
|
|
params.userName = params.userName || '_';
|
|
|
params.userThumb = params.userThumb || 'https://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100';
|
|
|
|
|
|
if (!params.uid || !params.actPrizeId) {
|
|
|
logger.error(`用户参数错误:${JSON.stringify(params)}`);
|
|
|
return res.json({
|
|
|
code: 400,
|
...
|
...
|
|