...
|
...
|
@@ -111,9 +111,12 @@ const saveEval = (req, res, next) => { |
|
|
* @param next
|
|
|
*/
|
|
|
const queryReason = (req, res, next) => {
|
|
|
const uid = req.user.uid;
|
|
|
const type = req.body.type;
|
|
|
const encryptedUid = aes.encryptionUid(uid);
|
|
|
|
|
|
|
|
|
clientApi.queryReason(type)
|
|
|
clientApi.queryReason(uid, encryptedUid, type)
|
|
|
.then(result => {
|
|
|
res.json(result);
|
|
|
}).catch(next);
|
...
|
...
|
|