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
deab83bc
Commit
deab83bc
authored
Nov 10, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
c099cb21
6e4eb847
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
22 deletions
+31
-22
center-channel/app/base/api/impl/opreceive/service.js
+10
-4
center-channel/app/base/service/impl/common/signSve.js
+14
-14
center-channel/app/base/service/impl/utilsSve/utilsServiceSve.js
+3
-3
center-channel/app/config/routes/api.js
+1
-1
center-channel/app/config/routes/doc.js
+3
-0
No files found.
center-channel/app/base/api/impl/opreceive/service.js
View file @
deab83bc
...
...
@@ -12,6 +12,12 @@ class edi extends APIBase {
async
create
(
pobj
,
query
,
req
)
{
console
.
log
(
pobj
);
this
.
logCtl
.
info
({
op
:
"service/impl/utilsSve/service.js/create"
,
content
:
"参数="
+
JSON
.
stringify
(
pobj
),
clientIp
:
req
.
client_ip
||
""
,
optitle
:
"服务单创建接口 controller层"
});
// 校验必填 pannong 2.1
var
checkResult
=
await
this
.
serviceCreateCheck
(
pobj
,
req
.
headers
);
if
(
checkResult
.
status
!=
0
)
{
...
...
@@ -59,16 +65,16 @@ class edi extends APIBase {
return
system
.
getResult
(
null
,
"contactName cannot be empty"
);
}
if
(
!
pobj
.
contactMobile
)
{
return
system
.
getResult
(
null
,
"contact
Nam
e cannot be empty"
);
return
system
.
getResult
(
null
,
"contact
Mobil
e cannot be empty"
);
}
if
(
!
pobj
.
timeUnit
)
{
return
system
.
getResult
(
null
,
"
contactName
cannot be empty"
);
return
system
.
getResult
(
null
,
"
timeUnit
cannot be empty"
);
}
if
(
!
pobj
.
quantity
)
{
return
system
.
getResult
(
null
,
"
contactName
cannot be empty"
);
return
system
.
getResult
(
null
,
"
quantity
cannot be empty"
);
}
if
(
!
pobj
.
companyInfo
)
{
return
system
.
getResult
(
null
,
"co
ntactName
cannot be empty"
);
return
system
.
getResult
(
null
,
"co
mpanyInfo
cannot be empty"
);
}
if
(
!
pobj
.
companyInfo
.
companyName
)
{
return
system
.
getResult
(
null
,
"companyName cannot be empty"
);
...
...
center-channel/app/base/service/impl/common/signSve.js
View file @
deab83bc
...
...
@@ -137,20 +137,20 @@ module.exports = SignService;
// "status":"16"
// }
// var obj = {
// "bizId":"
202011071358
",
//
"contactName":"lin
",
//
"contactMobile":"13911391996
",
//
"timeUnit":"year",
//
"quantity":1,
//
"companyInfo":{
//
"companyName":"公司宝
",
//
"taxpayerType":"NORMAL_TAXPAYER",
//
"acctgSystemId":"10001",
//
"companyForm":"1",
//
"industry":1,
//
"taxpayerNumber":"123456789",
//
"companyArea":"北京"
//
}
// "bizId":"
OD2020110629779500
",
//
"contactMobile":"18550295628
",
//
"contactName":"范锋华
",
// "timeUnit":"year",
// "quantity":1,
// "companyInfo":{
//
"companyName":"苏州磐荣信息科技有限公司
",
//
"taxpayerType":"NORMAL_TAXPAYER",
//
"acctgSystemId":"10001",
//
"companyForm":"1",
//
"industry":1,
//
"taxpayerNumber":"123456789",
//
"companyArea":"北京"
// }
// }
// task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
...
...
center-channel/app/base/service/impl/utilsSve/utilsServiceSve.js
View file @
deab83bc
...
...
@@ -188,7 +188,7 @@ class utils360Sve extends AppServiceBase {
clientIp
:
req
.
client_ip
||
""
,
optitle
:
"服务单处理反馈接收接口"
});
return
result
;
return
system
.
getResultSuccess
(
result
)
;
case
"accountingInfo"
:
var
url
=
settings
.
pannongUrl
()
+
"pas-api/gsb/service/accountingInfo"
;
var
result
=
await
this
.
restPostUrl
(
obj
,
url
);
...
...
@@ -198,7 +198,7 @@ class utils360Sve extends AppServiceBase {
clientIp
:
req
.
client_ip
||
""
,
optitle
:
"回传会计信息"
});
return
result
;
return
system
.
getResultSuccess
(
result
)
;
case
"booksInfo"
:
var
url
=
settings
.
pannongUrl
()
+
"pas-api/gsb/service/booksInfo"
;
var
result
=
await
this
.
restPostUrl
(
obj
,
url
);
...
...
@@ -208,7 +208,7 @@ class utils360Sve extends AppServiceBase {
clientIp
:
req
.
client_ip
||
""
,
optitle
:
"帐套信息接受接口"
});
return
result
;
return
system
.
getResultSuccess
(
result
)
;
default
:
return
system
.
getResult
(
null
,
"actionType参数错误"
);
}
...
...
center-channel/app/config/routes/api.js
View file @
deab83bc
...
...
@@ -442,7 +442,7 @@ module.exports = function (app) {
}
}
if
([
"getAppTokenByHosts"
,
"getAppTokenByAppKey"
,
"getTmNclFilterSearch"
,
"feedback"
].
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
if
([
"getAppTokenByHosts"
,
"getAppTokenByAppKey"
,
"getTmNclFilterSearch"
,
"feedback"
,
"accountingInfo"
,
"booksInfo"
].
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
req
.
body
.
actionBody
.
appHosts
=
req
.
host
;
next
();
return
;
...
...
center-channel/app/config/routes/doc.js
View file @
deab83bc
...
...
@@ -22,6 +22,7 @@ module.exports = function (app) {
}
else
{
console
.
log
(
data
);
str
=
marked
(
data
.
toString
());
res
.
header
(
'content-type'
,
'text/html;charset=UTF-8'
);
res
.
render
(
'apidoc'
,
{
str
});
}
});
...
...
@@ -37,6 +38,7 @@ module.exports = function (app) {
}
else
{
console
.
log
(
data
);
str
=
marked
(
data
.
toString
());
res
.
header
(
'content-type'
,
'text/html;charset=UTF-8'
);
res
.
render
(
'apidoc'
,
{
str
});
}
});
...
...
@@ -69,6 +71,7 @@ module.exports = function (app) {
console
.
log
(
data
);
str
=
marked
(
data
.
toString
());
console
.
log
(
str
);
res
.
header
(
'content-type'
,
'text/html;charset=UTF-8'
);
res
.
render
(
'apidoc'
,
{
str
});
}
});
...
...
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