Commit 7cb35009 authored by 李尚科's avatar 李尚科

gjj wechat fix

parent 185ad9e5
......@@ -9,9 +9,20 @@ class WechatController extends Controller {
const { ctx } = this;
const result = {};
ctx.success(result);
}
async checkLogin() {
const { ctx } = this;
const user_id = ctx.userId;
let is_login = false;
if (user_id) {
is_login = true;
}
ctx.success({ result: is_login });
}
}
module.exports = WechatController;
......@@ -2,6 +2,9 @@
module.exports = app => {
const router = app.router.namespace(app.config.projectRootPath + '/gjj');
router.get('/mine/loans', 'gjj.mine.getMyLoans');// 我的贷款
router.get('/mine/creditcards', 'gjj.mine.getMyCreditCards');// 我的信用卡
router.get('/wechat/check_login', 'gjj.wechat.checkLogin');// 公积金公众号检查用户是否登录
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment