Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
7cb35009
Commit
7cb35009
authored
Oct 14, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gjj wechat fix
parent
185ad9e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
wechat.js
app/controller/gjj/wechat.js
+12
-1
gjj.js
app/router/gjj.js
+3
-0
No files found.
app/controller/gjj/wechat.js
View file @
7cb35009
...
...
@@ -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
;
app/router/gjj.js
View file @
7cb35009
...
...
@@ -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'
);
// 公积金公众号检查用户是否登录
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment