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
769f527a
Commit
769f527a
authored
Nov 29, 2019
by
赵庆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加insert
parent
3135940d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
29 deletions
+39
-29
signsve/app/base/api/impl/op/action.js
+39
-4
signsve/app/base/service/impl/sign/signSve.js
+0
-25
No files found.
signsve/app/base/api/impl/op/action.js
View file @
769f527a
...
...
@@ -4,7 +4,7 @@ var settings = require("../../../../config/settings");
class
ActionAPI
extends
APIBase
{
constructor
()
{
super
();
this
.
merchantSve
=
system
.
getObject
(
"service.merchant.merchant
Sve"
);
this
.
ecloudsignSve
=
system
.
getObject
(
"service.sign.ecloudsign
Sve"
);
}
/**
* 接口跳转
...
...
@@ -32,20 +32,55 @@ class ActionAPI extends APIBase {
async
handleRequest
(
action_process
,
action_type
,
action_body
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
// 商户api
case
"nameList"
:
opResult
=
await
this
.
merchantSve
.
apiNameList
(
action_body
);
// 三要素 四要素验证
case
"bankVerify"
:
opResult
=
await
this
.
ecloudsignSve
.
apibankVerify
(
action_body
);
break
;
//申请证书
case
"applyCert"
:
opResult
=
await
this
.
ecloudsignSve
.
apiapplyCert
(
action_body
);
break
;
//添加签名/印章
case
"addSign"
:
opResult
=
await
this
.
ecloudsignSve
.
apiaddSign
(
action_body
);
break
;
//添加模板
case
"addHtmlTemplate"
:
opResult
=
await
this
.
ecloudsignSve
.
apiaddHtmlTemplate
(
action_body
);
break
;
//根据模板生成合同文档
case
"createContractByTemplate"
:
opResult
=
await
this
.
ecloudsignSve
.
apicreateContractByTemplate
(
action_body
);
break
;
//合同签署动态验证码发送
case
"sendSms"
:
opResult
=
await
this
.
ecloudsignSve
.
apisendSms
(
action_body
);
break
;
//用户授权验证签署合同
case
"authorizeSign"
:
opResult
=
await
this
.
ecloudsignSve
.
apiauthorizeSign
(
action_body
);
break
;
//合同详情下载
case
"downloadCont"
:
opResult
=
await
this
.
ecloudsignSve
.
apidownloadCont
(
action_body
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
exam
()
{
return
`<pre><pre/>`
;
}
classDesc
()
{
return
{
groupName
:
"op"
,
...
...
signsve/app/base/service/impl/sign/signSve.js
deleted
100644 → 0
View file @
3135940d
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve2.base"
)
const
settings
=
require
(
"../../../../config/settings"
)
class
SignService
extends
ServiceBase
{
constructor
()
{
}
async
apiNameList
(
params
)
{
try
{
return
await
this
.
nameList
(
params
);
}
catch
(
error
)
{
console
.
log
(
error
)
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
// -----------------------以此间隔,上面为API,下面为service---------------------------------
async
nameList
()
{
var
nameList
=
await
this
.
dao
.
nameList
();
return
system
.
getResultSuccess
(
nameList
);
}
}
super
(
"merchant"
,
ServiceBase
.
getDaoName
(
SignService
));
module
.
exports
=
MerchantService
;
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