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
4a27b106
Commit
4a27b106
authored
Jun 22, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-manage' of gitlab.gongsibao.com:jiangyong/zhichan into center-manage
parents
e433d79a
b60ff376
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
13 deletions
+15
-13
center-manage/app/base/service/impl/common/channelSve.js
+1
-1
center-manage/app/base/service/impl/common/channelhandlers/tx.js
+11
-9
center-manage/app/config/routes/api.js
+3
-3
No files found.
center-manage/app/base/service/impl/common/channelSve.js
View file @
4a27b106
...
@@ -22,7 +22,7 @@ class ChannelService extends ServiceBase {
...
@@ -22,7 +22,7 @@ class ChannelService extends ServiceBase {
if
(
!
this
.
handlers
[
fileName
][
method
]){
if
(
!
this
.
handlers
[
fileName
][
method
]){
throw
Error
(
`请在
${
fileName
}
文件中定义渠道流量的处理方法
${
method
}
`
)
throw
Error
(
`请在
${
fileName
}
文件中定义渠道流量的处理方法
${
method
}
`
)
}
}
let
rtn
=
await
this
.
handlers
[
fileName
][
method
](
datajson
)
let
rtn
=
await
this
.
handlers
[
fileName
][
method
](
datajson
)
;
return
rtn
;
return
rtn
;
}
}
async
create
(
p
,
q
,
req
){
async
create
(
p
,
q
,
req
){
...
...
center-manage/app/base/service/impl/common/channelhandlers/tx.js
View file @
4a27b106
...
@@ -41,8 +41,7 @@ class TxHandler {
...
@@ -41,8 +41,7 @@ class TxHandler {
}
}
var
rtn
=
await
rc
.
execPost3
(
params
,
requrl
);
var
rtn
=
await
rc
.
execPost3
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
console
.
log
(
"RRRRRRRRRRRRRRR"
);
console
.
log
(
JSON
.
stringify
(
j
),
"RRRRRRRRRRRRRRR"
);
console
.
log
(
JSON
.
stringify
(
j
));
return
j
;
return
j
;
}
}
catch
(
error
){
catch
(
error
){
...
@@ -250,10 +249,13 @@ class TxHandler {
...
@@ -250,10 +249,13 @@ class TxHandler {
module
.
exports
=
new
TxHandler
();
module
.
exports
=
new
TxHandler
();
var
task
=
new
TxHandler
();
// (async ()=>{
var
ConsultTypeName
=
"/工商服务/公司注册/"
.
split
(
"/"
)[
2
];
// var task = new TxHandler();
console
.
log
(
ConsultTypeName
);
// var ConsultTypeName = "/工商服务/公司注册/".split("/")[2];
var
d
=
task
.
userService
.
getBizUserForBizChance
(
'18738988150'
,
'公司宝'
,
ConsultTypeName
,
'北京'
);
// console.log(ConsultTypeName);
console
.
log
(
"ddddddddddddd"
);
// var d = await task.userService.getBizUserForBizChance("1880156771","公司宝","公司注册","北京");
console
.
log
(
JSON
.
stringify
(
d
));
// console.log("ddddddddddddd");
console
.
log
(
"dddddddddddddd"
);
// console.log(JSON.stringify(d));
// console.log("dddddddddddddd");
// })()
center-manage/app/config/routes/api.js
View file @
4a27b106
...
@@ -10,14 +10,14 @@ module.exports = function (app) {
...
@@ -10,14 +10,14 @@ module.exports = function (app) {
}
else
{
}
else
{
let
rtn
=
await
chnelapi
.
channelHandle
(
channel
,
req
.
path
+
"/"
+
req
.
body
.
actionType
,
req
.
body
)
let
rtn
=
await
chnelapi
.
channelHandle
(
channel
,
req
.
path
+
"/"
+
req
.
body
.
actionType
,
req
.
body
)
if
(
rtn
!=
null
){
if
(
rtn
!=
null
){
res
.
end
(
JSON
.
stringify
(
{
status
:
0
,
msg
:
"ok"
}
));
res
.
end
(
JSON
.
stringify
(
rtn
));
}
else
{
}
else
{
res
.
end
(
JSON
.
stringify
({
status
:
-
1
,
m
sg
:
"fail"
}));
res
.
end
(
JSON
.
stringify
({
status
:
-
1
,
m
essage
:
"fail"
}));
}
}
}
}
}
catch
(
e
){
}
catch
(
e
){
console
.
log
(
e
)
console
.
log
(
e
)
res
.
end
(
JSON
.
stringify
({
status
:
-
1
,
m
sg
:
"fail"
}));
res
.
end
(
JSON
.
stringify
({
status
:
-
1
,
m
essage
:
e
}));
}
}
})
})
app
.
get
(
'/api/:gname/:qname/:method'
,
function
(
req
,
res
)
{
app
.
get
(
'/api/:gname/:qname/:method'
,
function
(
req
,
res
)
{
...
...
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