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
6187456a
Commit
6187456a
authored
Sep 01, 2020
by
v_vjyjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
a5ea8963
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
44 deletions
+44
-44
center-manage/app/base/service/impl/common/channelhandlers/tx.js
+33
-27
center-manage/app/base/system.js
+9
-8
center-manage/app/config/settings.js
+2
-9
No files found.
center-manage/app/base/service/impl/common/channelhandlers/tx.js
View file @
6187456a
...
...
@@ -8,7 +8,6 @@ class TxHandler {
this
.
userService
=
system
.
getObject
(
"service.auth.userSve"
);
this
.
msgService
=
system
.
getObject
(
"service.msg.msgSve"
)
this
.
cacheManager
=
system
.
getObject
(
"db.common.cacheManager"
);
this
.
queueUrl
=
settings
.
bpushUrl
();
this
.
bookUrl
=
settings
.
bookUrl
()
+
"/web/bizchance"
;
}
...
...
@@ -538,7 +537,7 @@ class TxHandler {
}
}
return
syste
t
m
.
rysQueueOper
(
obj
);
return
system
.
rysQueueOper
(
obj
);
}
async
ServiceUpdate
(
datajson
)
{
//更新融易算服务信息到队列
...
...
@@ -553,7 +552,7 @@ class TxHandler {
}
}
return
syste
t
m
.
rysQueueOper
(
obj
);
return
system
.
rysQueueOper
(
obj
);
}
//融易算创建需求
...
...
@@ -569,7 +568,7 @@ class TxHandler {
}
}
return
syste
t
m
.
rysQueueOper
(
obj
);
return
system
.
rysQueueOper
(
obj
);
}
//融易算更新需求状态
...
...
@@ -585,7 +584,7 @@ class TxHandler {
}
}
return
syste
t
m
.
rysQueueOper
(
obj
);
return
system
.
rysQueueOper
(
obj
);
}
...
...
@@ -604,7 +603,7 @@ class TxHandler {
}
}
return
syste
t
m
.
rysQueueOper
(
obj
);
return
system
.
rysQueueOper
(
obj
);
}
//融易算报表确认
...
...
@@ -624,7 +623,7 @@ class TxHandler {
}
}
return
syste
t
m
.
rysQueueOper
(
obj
);
return
system
.
rysQueueOper
(
obj
);
}
//融易算报税确认
...
...
@@ -644,7 +643,7 @@ class TxHandler {
}
}
return
syste
t
m
.
rysQueueOper
(
obj
);
return
system
.
rysQueueOper
(
obj
);
}
//融易算接收票据快递单号
...
...
@@ -660,30 +659,37 @@ class TxHandler {
}
}
return
syste
t
m
.
rysQueueOper
(
obj
);
return
system
.
rysQueueOper
(
obj
);
}
async
test
(
datajson
){
var
rc
=
system
.
getObject
(
"util.execClient"
);
var
reqUrl
=
this
.
bookUrl
+
"/bizOptCtl/insertInfo"
;
var
result
=
await
rc
.
execPost3
(
datajson
,
reqUrl
);
//var j = JSON.parse(result.stdout);
return
result
;
}
}
module
.
exports
=
new
TxHandler
();
//
(async () => {
//
var task = new TxHandler();
//
var obj = {
//
"requestId": "825da0a74432-738f-4bed-b48d-d51aa808",
//
"bizId": "5892748825678",
//
"contactsPhone": "18510669321",
//
"userId": "10973452443103825",
//
"orderId": "341184456620456778900",
//
"areatype": "city",
//
"area": "100010",
//
"topOrgCode": "rong_yi_suan",
//
"taxpayerType": 1
//
}
// var d = await task.ServiceCreate
(obj);
//
console.log("ddddddddddddd");
//
console.log(JSON.stringify(d));
//
console.log("dddddddddddddd");
//
})()
(
async
()
=>
{
var
task
=
new
TxHandler
();
var
obj
=
{
"requestId"
:
"825da0a74432-738f-4bed-b48d-d51aa808"
,
"bizId"
:
"5892748825678"
,
"contactsPhone"
:
"18510669321"
,
"userId"
:
"10973452443103825"
,
"orderId"
:
"341184456620456778900"
,
"areatype"
:
"city"
,
"area"
:
"100010"
,
"topOrgCode"
:
"rong_yi_suan"
,
"taxpayerType"
:
1
}
var
d
=
await
task
.
test
(
obj
);
console
.
log
(
"ddddddddddddd"
);
console
.
log
(
JSON
.
stringify
(
d
));
console
.
log
(
"dddddddddddddd"
);
})()
center-manage/app/base/system.js
View file @
6187456a
...
...
@@ -376,25 +376,26 @@ class System {
requestId string 请求id
*/
static
async
rysQueueOper
(
obj
)
{
console
.
log
(
"obj-----------------------"
,
obj
);
if
(
obj
.
pushUrl
&&
obj
.
actionType
&&
obj
.
messageBody
)
{
try
{
var
rc
=
this
.
getObject
(
"util.execClient"
);
var
reqUrl
=
settings
.
queue
Url
;
var
reqUrl
=
settings
.
push
Url
;
var
reqId
=
uuidv4
();
var
param
=
{
actionType
:
"produceData"
,
actionBody
:
{
pushUrl
:
obj
.
pushUrl
,
actionType
:
obj
.
actionType
,
identifyCode
:
"book-manage"
,
messageBody
:
obj
.
messageBody
"actionType"
:
"produceData"
,
"actionBody"
:
{
"pushUrl"
:
obj
.
pushUrl
,
"actionType"
:
obj
.
actionType
,
"identifyCode"
:
"book-manage"
,
"messageBody"
:
obj
.
messageBody
}
}
if
(
obj
.
notifyUrl
)
{
param
.
actionBody
.
notifyUrl
=
obj
.
notifyUrl
;
}
if
(
obj
.
headData
)
{
param
.
actionBody
.
headData
;
param
.
actionBody
.
headData
=
obj
.
headData
;
}
if
(
obj
.
requestId
)
{
param
.
requestId
=
obj
.
requestId
;
...
...
center-manage/app/config/settings.js
View file @
6187456a
...
...
@@ -49,7 +49,7 @@ var settings = {
},
bookUrl
:
function
()
{
if
(
this
.
env
==
"localhost"
)
{
return
"http://192.168.
1.19
:8889"
;
return
"http://192.168.
210.185
:8889"
;
}
else
{
return
"http://icdeliver-service"
;
}
...
...
@@ -63,14 +63,7 @@ var settings = {
},
pushUrl
:
function
()
{
if
(
this
.
env
==
"localhost"
)
{
return
"http://192.168.18.101:4018/api/queueAction/producer/springBoard"
;
}
else
{
return
"http://logs-sytxpublic-msgq-service/api/queueAction/producer/springBoard"
;
}
},
bpushUrl
:
function
()
{
if
(
this
.
env
==
"localhost"
)
{
return
"http://192.168.1.19:4018/api/queueAction/producer/springBoard"
;
return
"http://192.168.18.101:4018/api/queueAction/plsroducer/springBoard"
;
}
else
{
return
"http://logs-sytxpublic-msgq-service/api/queueAction/producer/springBoard"
;
}
...
...
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