...
|
...
|
@@ -27,8 +27,8 @@ const whSurfController = { |
|
|
let data = valid(req.body, {
|
|
|
act_id: {type: 'number', empty: false},
|
|
|
uid: {type: 'number', empty: false},
|
|
|
sessionKey: {type: 'string', empty: true},
|
|
|
appVersion: {type: 'string', empty: true},
|
|
|
sessionKey: {type: 'string', empty: false},
|
|
|
appVersion: {type: 'string', empty: false},
|
|
|
appSessionType: {type: 'string', empty: true}
|
|
|
});
|
|
|
let result = await req.ctx(wheelSurfModel).goPrize(data);
|
...
|
...
|
@@ -37,6 +37,20 @@ const whSurfController = { |
|
|
} catch (e) {
|
|
|
res.json(e);
|
|
|
}
|
|
|
},
|
|
|
|
|
|
getUserPrize: async function(req, res) {
|
|
|
try {
|
|
|
let data = valid(req.body, {
|
|
|
act_id: {type: 'number', empty: false},
|
|
|
uid: {type: 'number', empty: false},
|
|
|
});
|
|
|
let result = await req.ctx(wheelSurfModel).getUserPrize(data);
|
|
|
|
|
|
res.json({code: 200, data: result, result: true});
|
|
|
} catch (e) {
|
|
|
res.json(e);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|