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
fd8e6862
Commit
fd8e6862
authored
Mar 22, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
802cd763
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
igirl-channel-gateway/app/config/routes/api.js
+6
-5
No files found.
igirl-channel-gateway/app/config/routes/api.js
View file @
fd8e6862
...
@@ -8,7 +8,8 @@ module.exports = function (app) {
...
@@ -8,7 +8,8 @@ module.exports = function (app) {
app
.
use
(
'/api/ali/esp/intention/submit'
,
async
function
(
req
,
res
)
{
app
.
use
(
'/api/ali/esp/intention/submit'
,
async
function
(
req
,
res
)
{
try
{
try
{
if
(
req
.
headers
[
'content-type'
].
indexof
(
'application/octet-stream'
)
>-
1
)
{
console
.
log
(
req
.
headers
[
'content-type'
])
if
(
req
.
headers
[
'content-type'
].
indexOf
(
'application/octet-stream'
)
>-
1
)
{
await
logCtl
.
applicationOctetStream2Json
(
req
);
await
logCtl
.
applicationOctetStream2Json
(
req
);
}
}
var
client_ip
=
system
.
get_client_ip
(
req
);
var
client_ip
=
system
.
get_client_ip
(
req
);
...
@@ -34,7 +35,7 @@ module.exports = function (app) {
...
@@ -34,7 +35,7 @@ module.exports = function (app) {
});
});
app
.
use
(
'/api/ali/esp/intention/solution/feedback'
,
async
function
(
req
,
res
)
{
app
.
use
(
'/api/ali/esp/intention/solution/feedback'
,
async
function
(
req
,
res
)
{
try
{
try
{
if
(
req
.
headers
[
'content-type'
].
index
o
f
(
'application/octet-stream'
)
>-
1
)
{
if
(
req
.
headers
[
'content-type'
].
index
O
f
(
'application/octet-stream'
)
>-
1
)
{
await
logCtl
.
applicationOctetStream2Json
(
req
);
await
logCtl
.
applicationOctetStream2Json
(
req
);
}
}
var
client_ip
=
system
.
get_client_ip
(
req
);
var
client_ip
=
system
.
get_client_ip
(
req
);
...
@@ -59,7 +60,7 @@ module.exports = function (app) {
...
@@ -59,7 +60,7 @@ module.exports = function (app) {
});
});
app
.
use
(
'/api/ali/ic/paySuccess'
,
async
function
(
req
,
res
)
{
app
.
use
(
'/api/ali/ic/paySuccess'
,
async
function
(
req
,
res
)
{
try
{
try
{
if
(
req
.
headers
[
'content-type'
].
index
o
f
(
'application/octet-stream'
)
>-
1
)
{
if
(
req
.
headers
[
'content-type'
].
index
O
f
(
'application/octet-stream'
)
>-
1
)
{
await
logCtl
.
applicationOctetStream2Json
(
req
);
await
logCtl
.
applicationOctetStream2Json
(
req
);
}
}
var
client_ip
=
system
.
get_client_ip
(
req
);
var
client_ip
=
system
.
get_client_ip
(
req
);
...
@@ -84,7 +85,7 @@ module.exports = function (app) {
...
@@ -84,7 +85,7 @@ module.exports = function (app) {
});
});
app
.
use
(
'/api/ali/ic/close'
,
async
function
(
req
,
res
)
{
app
.
use
(
'/api/ali/ic/close'
,
async
function
(
req
,
res
)
{
try
{
try
{
if
(
req
.
headers
[
'content-type'
].
index
o
f
(
'application/octet-stream'
)
>-
1
)
{
if
(
req
.
headers
[
'content-type'
].
index
O
f
(
'application/octet-stream'
)
>-
1
)
{
await
logCtl
.
applicationOctetStream2Json
(
req
);
await
logCtl
.
applicationOctetStream2Json
(
req
);
}
}
var
client_ip
=
system
.
get_client_ip
(
req
);
var
client_ip
=
system
.
get_client_ip
(
req
);
...
@@ -109,7 +110,7 @@ module.exports = function (app) {
...
@@ -109,7 +110,7 @@ module.exports = function (app) {
});
});
app
.
use
(
'/api/ali/esp/intention/close'
,
async
function
(
req
,
res
)
{
app
.
use
(
'/api/ali/esp/intention/close'
,
async
function
(
req
,
res
)
{
try
{
try
{
if
(
req
.
headers
[
'content-type'
].
index
o
f
(
'application/octet-stream'
)
>-
1
)
{
if
(
req
.
headers
[
'content-type'
].
index
O
f
(
'application/octet-stream'
)
>-
1
)
{
await
logCtl
.
applicationOctetStream2Json
(
req
);
await
logCtl
.
applicationOctetStream2Json
(
req
);
}
}
var
client_ip
=
system
.
get_client_ip
(
req
);
var
client_ip
=
system
.
get_client_ip
(
req
);
...
...
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