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
42eba8e8
Commit
42eba8e8
authored
Dec 25, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
17d6d2d3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
52 additions
and
52 deletions
+52
-52
igirl-channel-web/app/config/routes/web.js
+43
-43
igirl-channel-web/app/front/vues/pages/OAjdcompany/OAjdcompany.html
+1
-1
igirl-channel-web/app/front/vues/pages/OAjdcompany/OAjdcompany.js
+1
-1
igirl-channel-web/app/front/vues/pages/OAjddetails/OAjddetails.html
+1
-1
igirl-channel-web/app/front/vues/pages/OAjdlist/OAjdlist.html
+1
-1
igirl-channel-web/app/front/vues/pages/OAjdlist/OAjdlist.js
+1
-1
igirl-channel-web/app/front/vues/pages/jdindentdetail/jdindentdetail.html
+1
-1
igirl-channel-web/app/front/vues/pages/jdindentlist/jdindentlist.html
+1
-1
igirl-channel-web/app/front/vues/pages/jdtrademark/jdtrademark.js
+2
-2
No files found.
igirl-channel-web/app/config/routes/web.js
View file @
42eba8e8
...
...
@@ -48,47 +48,47 @@ module.exports = function (app) {
});
}
});
app
.
get
(
"/login"
,
async
function
(
req
,
res
)
{
try
{
var
params
=
req
.
query
;
if
(
!
params
.
state
||
!
params
.
token_type
||
!
params
.
access_token
)
{
res
.
redirect
(
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=jdindentlist&client_id=9841572588670903"
);
return
;
}
var
getUserparams
=
{
actionProcess
:
"jd"
,
authUrl
:
"https://oauth2.jdcloud.com/userinfo"
,
authToken
:
params
.
token_type
+
" "
+
params
.
access_token
};
var
userItemResult
=
await
tmqueryCtl
.
getJdUserInfo
(
getUserparams
,
req
.
query
,
req
);
logClient
.
info
(
"jd"
,
{
optitle
:
"###获取京东用户结果...getJdUserInfo"
,
op
:
"/jdtm/loginUser"
,
content
:
"参数="
+
JSON
.
stringify
(
getUserparams
)
+
",result="
+
JSON
.
stringify
(
userItemResult
),
clientIp
:
""
});
if
(
userItemResult
.
status
!=
0
)
{
res
.
redirect
(
"/#/jd/jdindentlist"
);
return
;
}
if
(
!
userItemResult
.
data
.
encryptChannelUserId
||
userItemResult
.
data
.
encryptChannelUserId
==
"undefined"
)
{
userItemResult
=
await
tmqueryCtl
.
getUserIdEncryptStr
(
getUserparams
,
req
.
query
,
req
);
if
(
userItemResult
.
status
!=
0
)
{
res
.
redirect
(
"/#/jd/jdindentlist"
);
return
;
}
}
var
skipUrl
=
"/#/jd/"
+
params
.
state
+
"?channelUserId="
+
encodeURIComponent
(
userItemResult
.
data
.
encryptChannelUserId
);
res
.
redirect
(
skipUrl
);
}
catch
(
error
)
{
logClient
.
error
(
"jd"
,
{
optitle
:
"###获取京东用户异常...getJdUserInfo"
,
op
:
"/jdtm/loginUser"
,
content
:
error
.
stack
,
clientIp
:
""
});
}
});
//
app.get("/login", async function (req, res) {
//
try {
//
var params = req.query;
//
if (!params.state || !params.token_type || !params.access_token) {
//
res.redirect("http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=jdindentlist&client_id=9841572588670903");
//
return;
//
}
//
var getUserparams = {
//
actionProcess: "jd",
//
authUrl: "https://oauth2.jdcloud.com/userinfo",
//
authToken: params.token_type + " " + params.access_token
//
};
//
var userItemResult = await tmqueryCtl.getJdUserInfo(getUserparams, req.query, req);
//
logClient.info("jd", {
//
optitle: "###获取京东用户结果...getJdUserInfo",
//
op: "/jdtm/loginUser",
//
content: "参数=" + JSON.stringify(getUserparams) + ",result=" + JSON.stringify(userItemResult),
//
clientIp: ""
//
});
//
if (userItemResult.status != 0) {
//
res.redirect("/#/jd/jdindentlist");
//
return;
//
}
//
if (!userItemResult.data.encryptChannelUserId || userItemResult.data.encryptChannelUserId == "undefined") {
//
userItemResult = await tmqueryCtl.getUserIdEncryptStr(getUserparams, req.query, req);
//
if (userItemResult.status != 0) {
//
res.redirect("/#/jd/jdindentlist");
//
return;
//
}
//
}
//
var skipUrl = "/#/jd/" + params.state + "?channelUserId=" + encodeURIComponent(userItemResult.data.encryptChannelUserId);
//
res.redirect(skipUrl);
//
} catch (error) {
//
logClient.error("jd", {
//
optitle: "###获取京东用户异常...getJdUserInfo",
//
op: "/jdtm/loginUser",
//
content: error.stack,
//
clientIp: ""
//
});
//
}
//
});
app
.
get
(
"/jd/orderNotify"
,
async
function
(
req
,
res
)
{
logClient
.
payLog
(
"jd"
,
{
optitle
:
"###操作订单结果参数...orderNotify"
,
...
...
@@ -112,8 +112,8 @@ module.exports = function (app) {
{
instanceId
:
req
.
query
.
orderBizId
,
appInfo
:
{
authUrl
:
"http://tm.plus.jdcloud.com/jd/skipPage?channelUserId="
+
req
.
query
.
jdPin
,
adminUrl
:
"http
://tm.plus.jdcloud.com/login
"
authUrl
:
"http
s
://tm.plus.jdcloud.com/jd/skipPage?channelUserId="
+
req
.
query
.
jdPin
,
adminUrl
:
"http
s://tm.plus.jdcloud.com
"
}
};
res
.
end
(
JSON
.
stringify
(
params
));
...
...
igirl-channel-web/app/front/vues/pages/OAjdcompany/OAjdcompany.html
View file @
42eba8e8
...
...
@@ -7,7 +7,7 @@
<span
@
click=
"loginOut"
v-if=
"user_Name"
>
退出
</span>
</div>
<div
v-else
>
<a
href=
"https://login.jdcloud.com/?returnUrl=http%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://login.jdcloud.com/?returnUrl=http
s
%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://user.jdcloud.com/register?source=jdcloud&ReturnUrl=https%3A%2F%2Fwww.jdcloud.com"
style=
"display:inline-block;color: #fff;padding: 0 15px;background:linear-gradient(80deg,#3171ff 0,#a14faf 100%);border-radius:13px;height: 26px;
line-height: 26px;"
>
免费注册
</a>
</div>
...
...
igirl-channel-web/app/front/vues/pages/OAjdcompany/OAjdcompany.js
View file @
42eba8e8
...
...
@@ -35,7 +35,7 @@
let
_this
=
this
;
$
.
ajax
({
async
:
true
,
url
:
"http://login.jdcloud.com/logout"
,
url
:
"http
s
://login.jdcloud.com/logout"
,
type
:
"GET"
,
dataType
:
"jsonp"
,
jsonp
:
'callback'
,
...
...
igirl-channel-web/app/front/vues/pages/OAjddetails/OAjddetails.html
View file @
42eba8e8
...
...
@@ -15,7 +15,7 @@
<span
@
click=
"loginOut"
v-if=
"user_Name"
>
退出
</span>
</div>
<div
v-else
>
<a
href=
"https://login.jdcloud.com/?returnUrl=http%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://login.jdcloud.com/?returnUrl=http
s
%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://user.jdcloud.com/register?source=jdcloud&ReturnUrl=https%3A%2F%2Fwww.jdcloud.com"
style=
"display:inline-block;color: #fff;padding: 0 15px;background:linear-gradient(80deg,#3171ff 0,#a14faf 100%);border-radius:13px;height: 26px;
line-height: 26px;"
>
免费注册
</a>
</div>
...
...
igirl-channel-web/app/front/vues/pages/OAjdlist/OAjdlist.html
View file @
42eba8e8
...
...
@@ -7,7 +7,7 @@
<span
@
click=
"loginOut"
v-if=
"user_Name"
>
退出
</span>
</div>
<div
v-else
>
<a
href=
"https://login.jdcloud.com/?returnUrl=http%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://login.jdcloud.com/?returnUrl=http
s
%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://user.jdcloud.com/register?source=jdcloud&ReturnUrl=https%3A%2F%2Fwww.jdcloud.com"
style=
"display:inline-block;color: #fff;padding: 0 15px;background:linear-gradient(80deg,#3171ff 0,#a14faf 100%);border-radius:13px;height: 26px;
line-height: 26px;"
>
免费注册
</a>
</div>
...
...
igirl-channel-web/app/front/vues/pages/OAjdlist/OAjdlist.js
View file @
42eba8e8
...
...
@@ -490,7 +490,7 @@
let
_this
=
this
;
$
.
ajax
({
async
:
true
,
url
:
"http://login.jdcloud.com/logout"
,
url
:
"http
s
://login.jdcloud.com/logout"
,
type
:
"GET"
,
dataType
:
"jsonp"
,
jsonp
:
'callback'
,
...
...
igirl-channel-web/app/front/vues/pages/jdindentdetail/jdindentdetail.html
View file @
42eba8e8
...
...
@@ -10,7 +10,7 @@
<span
@
click=
"loginOut"
v-if=
"user_Name"
>
退出
</span>
</div>
<div
v-else
>
<a
href=
"https://login.jdcloud.com/?returnUrl=http%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://login.jdcloud.com/?returnUrl=http
s
%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://user.jdcloud.com/register?source=jdcloud&ReturnUrl=https%3A%2F%2Fwww.jdcloud.com"
style=
"display:inline-block;color: #fff;padding: 0 15px;background:linear-gradient(80deg,#3171ff 0,#a14faf 100%);border-radius:13px;height: 26px;
line-height: 26px;"
>
免费注册
</a>
</div>
...
...
igirl-channel-web/app/front/vues/pages/jdindentlist/jdindentlist.html
View file @
42eba8e8
...
...
@@ -7,7 +7,7 @@
<span
@
click=
"loginOut"
v-if=
"user_Name"
>
退出
</span>
</div>
<div
v-else
>
<a
href=
"https://login.jdcloud.com/?returnUrl=http%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://login.jdcloud.com/?returnUrl=http
s
%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist"
class=
"jdindentlist-header-login"
>
登录
</a>
<a
href=
"https://user.jdcloud.com/register?source=jdcloud&ReturnUrl=https%3A%2F%2Fwww.jdcloud.com"
style=
"display:inline-block;color: #fff;padding: 0 15px;background:linear-gradient(80deg,#3171ff 0,#a14faf 100%);border-radius:13px;height: 26px;
line-height: 26px;"
>
免费注册
</a>
</div>
...
...
igirl-channel-web/app/front/vues/pages/jdtrademark/jdtrademark.js
View file @
42eba8e8
...
...
@@ -157,7 +157,7 @@
methods
:
{
/*全选 */
goIndentList
(){
location
.
href
=
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=jdindentlist&client_id=9841572588670903"
;
location
.
href
=
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http
s
://tm.plus.jdcloud.com/jdtm/getUser&state=jdindentlist&client_id=9841572588670903"
;
},
handleCheckAllChange
(
val
)
{
if
(
val
)
{
...
...
@@ -200,7 +200,7 @@
if
(
code
.
channelItemCode
)
{
switch
(
code
.
itemCode
)
{
case
"zzsbzc"
:
location
.
href
=
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=selftmreg&client_id=9841572588670903"
;
location
.
href
=
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http
s
://tm.plus.jdcloud.com/jdtm/getUser&state=selftmreg&client_id=9841572588670903"
;
/*this.$router.push({ path: "/jd/selftmreg", query: {} });*/
break
;
case
"fzsbzc"
:
...
...
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