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
fd85e045
Commit
fd85e045
authored
Mar 25, 2020
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bpo-web' of gitlab.gongsibao.com:jiangyong/zhichan into bpo-web
parents
a90f9de3
db06ff94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
bpo-web/app/base/service/impl/entcontractSve.js
+8
-3
No files found.
bpo-web/app/base/service/impl/entcontractSve.js
View file @
fd85e045
...
...
@@ -208,6 +208,8 @@ class EntcontractService extends ServiceBase {
async
createYzMerchant
(
params
)
{
var
data
=
{
// appId: "1202849621743763458",
// mchtId: "1202848945651318786",
appId
:
params
.
toAppId
,
mchtId
:
params
.
toMcthid
,
type
:
"0"
,
// 类型 0 一般纳税人 1 小规模纳税人
...
...
@@ -235,7 +237,7 @@ class EntcontractService extends ServiceBase {
var
v
=
data
[
k
];
signArr
.
push
(
k
+
"="
+
v
);
}
var
signStr
=
signArr
.
join
(
"&"
)
+
"&key="
+
this
.
YZKEY
;
var
signStr
=
signArr
.
join
(
"&"
)
+
"&key="
+
params
.
key
;
data
.
sign
=
md5
(
signStr
).
toUpperCase
();
data
.
bizContent
=
[
{
...
...
@@ -669,6 +671,7 @@ class EntcontractService extends ServiceBase {
// this.syncSign(entcontract.id);
params
.
toAppId
=
enttemplate
.
appid
;
params
.
toMcthid
=
enttemplate
.
mcthid
;
params
.
key
=
enttemplate
.
key
;
return
await
this
.
createYzMerchant
(
params
);
// return this.returnjson(0, "success", {
// contractId: entcontract.id
...
...
@@ -764,10 +767,12 @@ class EntcontractService extends ServiceBase {
}
// 获取yz配置
let
conf
=
await
this
.
getAppConfig
();
// let conf = await this.getAppConfig();
let
enttemplate
=
await
this
.
enttemplateSve
.
findById
(
contract
.
enttemplate_id
);
// 推送数据
var
param
=
{
"appId"
:
conf
.
appI
d
,
// appId
"appId"
:
enttemplate
.
appi
d
,
// appId
"merchantName"
:
signInfo
.
companyName
,
// 有赞商户名称
"merchantId"
:
user
.
userId3rd
,
// 有赞商户id
"fileUrl"
:
contract
.
fileurl
,
// 签约合同pdf文件
...
...
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