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
db06ff94
Commit
db06ff94
authored
Mar 25, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
ba572f4a
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 @
db06ff94
...
@@ -208,6 +208,8 @@ class EntcontractService extends ServiceBase {
...
@@ -208,6 +208,8 @@ class EntcontractService extends ServiceBase {
async
createYzMerchant
(
params
)
{
async
createYzMerchant
(
params
)
{
var
data
=
{
var
data
=
{
// appId: "1202849621743763458",
// mchtId: "1202848945651318786",
appId
:
params
.
toAppId
,
appId
:
params
.
toAppId
,
mchtId
:
params
.
toMcthid
,
mchtId
:
params
.
toMcthid
,
type
:
"0"
,
// 类型 0 一般纳税人 1 小规模纳税人
type
:
"0"
,
// 类型 0 一般纳税人 1 小规模纳税人
...
@@ -235,7 +237,7 @@ class EntcontractService extends ServiceBase {
...
@@ -235,7 +237,7 @@ class EntcontractService extends ServiceBase {
var
v
=
data
[
k
];
var
v
=
data
[
k
];
signArr
.
push
(
k
+
"="
+
v
);
signArr
.
push
(
k
+
"="
+
v
);
}
}
var
signStr
=
signArr
.
join
(
"&"
)
+
"&key="
+
this
.
YZKEY
;
var
signStr
=
signArr
.
join
(
"&"
)
+
"&key="
+
params
.
key
;
data
.
sign
=
md5
(
signStr
).
toUpperCase
();
data
.
sign
=
md5
(
signStr
).
toUpperCase
();
data
.
bizContent
=
[
data
.
bizContent
=
[
{
{
...
@@ -669,6 +671,7 @@ class EntcontractService extends ServiceBase {
...
@@ -669,6 +671,7 @@ class EntcontractService extends ServiceBase {
// this.syncSign(entcontract.id);
// this.syncSign(entcontract.id);
params
.
toAppId
=
enttemplate
.
appid
;
params
.
toAppId
=
enttemplate
.
appid
;
params
.
toMcthid
=
enttemplate
.
mcthid
;
params
.
toMcthid
=
enttemplate
.
mcthid
;
params
.
key
=
enttemplate
.
key
;
return
await
this
.
createYzMerchant
(
params
);
return
await
this
.
createYzMerchant
(
params
);
// return this.returnjson(0, "success", {
// return this.returnjson(0, "success", {
// contractId: entcontract.id
// contractId: entcontract.id
...
@@ -763,10 +766,12 @@ class EntcontractService extends ServiceBase {
...
@@ -763,10 +766,12 @@ class EntcontractService extends ServiceBase {
return
null
;
return
null
;
}
}
// 获取yz配置
// 获取yz配置
let
conf
=
await
this
.
getAppConfig
();
// let conf = await this.getAppConfig();
let
enttemplate
=
await
this
.
enttemplateSve
.
findById
(
contract
.
enttemplate_id
);
// 推送数据
// 推送数据
var
param
=
{
var
param
=
{
"appId"
:
conf
.
appI
d
,
// appId
"appId"
:
enttemplate
.
appi
d
,
// appId
"merchantName"
:
signInfo
.
companyName
,
// 有赞商户名称
"merchantName"
:
signInfo
.
companyName
,
// 有赞商户名称
"merchantId"
:
user
.
userId3rd
,
// 有赞商户id
"merchantId"
:
user
.
userId3rd
,
// 有赞商户id
"fileUrl"
:
contract
.
fileurl
,
// 签约合同pdf文件
"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