Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
49c15a47
Commit
49c15a47
authored
Mar 05, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
fc6ec04f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
+12
-7
bpo-web/app/base/controller/impl/ecompanywxuserCtl.js
+2
-2
bpo-web/app/base/controller/impl/wxCtl.js
+7
-2
bpo-web/app/base/service/impl/ecompanywxuserSve.js
+1
-1
bpo-web/app/config/routes/vue-ui.js
+1
-1
bpo-web/app/front/entry/public/js/wxsign.js
+1
-1
No files found.
bpo-web/app/base/controller/impl/ecompanywxuserCtl.js
View file @
49c15a47
...
...
@@ -53,8 +53,8 @@ class ecompanywxuserCtl extends CtlBase {
return
system
.
getErrResult2
(
"提交失败,您填写的身份证号码已经录入系统"
);
}
if
(
rs
.
code
!=
''
){
return
system
.
getErrResult2
(
rs
.
m
sg
);
if
(
rs
.
code
!=
=
0
){
return
system
.
getErrResult2
(
rs
.
m
essage
);
}
return
system
.
getResult2
(
rs
);
...
...
bpo-web/app/base/controller/impl/wxCtl.js
View file @
49c15a47
var
system
=
require
(
"../../system"
)
var
settings
=
require
(
"../../../config/settings"
);
const
CtlBase
=
require
(
"../ctl.base"
);
const
axios
=
require
(
"axios"
);
class
WxCtl
extends
CtlBase
{
constructor
()
{
...
...
@@ -41,9 +42,13 @@ class WxCtl extends CtlBase {
var
rtn
=
null
;
var
url
=
"https://api.weixin.qq.com/sns/oauth2/access_token?appid=wxf616c0a459d66081&secret=35275146272c7c862ff4b1ba11282d02&code="
+
code
+
"&grant_type=authorization_code"
;
try
{
rtn
=
await
this
.
execClient
.
execGet
({},
url
);
// rtn = await this.execClient.execGet({}, url);
rtn
=
await
axios
({
method
:
'get'
,
url
:
url
});
console
.
log
(
rtn
);
var
result
=
JSON
.
parse
(
rtn
.
stdout
)
;
var
result
=
rtn
.
data
;
if
(
result
.
openid
)
{
await
this
.
redisClient
.
set
(
redisKey
,
result
.
openid
,
6
*
60
*
60
);
return
system
.
getResult2
(
result
.
openid
);
...
...
bpo-web/app/base/service/impl/ecompanywxuserSve.js
View file @
49c15a47
...
...
@@ -84,7 +84,7 @@ class EcompanywxuserService extends ServiceBase {
if
(
rs
.
status
==
200
)
{
let
rsData
=
rs
.
data
;
if
(
rsData
.
msg
==
'success'
)
{
if
(
rsData
.
code
===
0
)
{
user
.
isSend
=
true
;
user
.
save
();
return
rsData
;
...
...
bpo-web/app/config/routes/vue-ui.js
View file @
49c15a47
...
...
@@ -40,7 +40,7 @@ module.exports = function (app) {
app
.
get
(
'/vue/comp/:cname'
,
function
(
req
,
res
){
var
componentName
=
req
.
params
.
cname
;
buildComponent
(
componentName
).
then
(
function
(
r
){
res
.
end
(
r
.
replace
(
/
\n
\r
/g
,
""
));
res
.
end
(
r
.
replace
(
/
\n
/g
,
""
));
});
});
};
bpo-web/app/front/entry/public/js/wxsign.js
View file @
49c15a47
...
...
@@ -110,7 +110,7 @@ var app = new Vue({
}
url
=
url
.
split
(
"?"
)[
0
];
//
url = "https://bpohhr.gongsibao.com/bpoproxy"
url
=
"https://bpohhr.gongsibao.com/bpoproxy"
// http://192.168.18.125:3000/wxsign?comid=10172&userCode=100018&nonceStr=nonceStrnonceStr&sign=E47D90EA49DCB7E9114A27767DCBF3C2
var
redirect_uri
=
encodeURIComponent
(
url
);
var
appkey
=
this
.
appid
;
...
...
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