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
72cd96a0
Commit
72cd96a0
authored
Mar 25, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
207cf593
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
bpo-web/app/base/service/impl/entcontractSve.js
+9
-1
No files found.
bpo-web/app/base/service/impl/entcontractSve.js
View file @
72cd96a0
...
...
@@ -212,6 +212,7 @@ class EntcontractService extends ServiceBase {
// mchtId: "1202848945651318786",
appId
:
params
.
toAppId
,
mchtId
:
params
.
toMcthid
,
ageFlag
:
0
,
type
:
"0"
,
// 类型 0 一般纳税人 1 小规模纳税人
companyName
:
params
.
merchantName
,
//商户名称
mobile
:
params
.
mobile
,
//手机号
...
...
@@ -230,6 +231,8 @@ class EntcontractService extends ServiceBase {
signType
:
'MD5'
,
nonceStr
:
await
this
.
getUidStr
(
16
,
36
)
};
console
.
log
(
"有赞商户创建data:"
+
data
);
var
signArr
=
[];
var
keys
=
Object
.
keys
(
data
).
sort
();
for
(
var
i
=
0
;
i
<
keys
.
length
;
i
++
)
{
...
...
@@ -238,7 +241,10 @@ class EntcontractService extends ServiceBase {
signArr
.
push
(
k
+
"="
+
v
);
}
var
signStr
=
signArr
.
join
(
"&"
)
+
"&key="
+
params
.
key
;
console
.
log
(
"有赞商户创建signStr:"
+
signStr
);
data
.
sign
=
md5
(
signStr
).
toUpperCase
();
console
.
log
(
"有赞商户创建sign:"
+
data
.
sign
);
data
.
bizContent
=
[
{
"quickDeductionFactor"
:
0
,
...
...
@@ -262,12 +268,14 @@ class EntcontractService extends ServiceBase {
var
rtn
=
null
;
try
{
let
url
=
settings
.
apiconfig
.
settleApiConfig
().
createMerchantApi
;
console
.
log
(
"
post yz merchant to settle
"
+
url
);
console
.
log
(
"
有赞商户创建url:
"
+
url
);
let
rs
=
await
axios
({
method
:
'post'
,
url
:
url
,
data
:
data
,
});
console
.
log
(
"有赞商户创建result:"
+
rs
.
data
);
var
reso
=
rs
.
data
;
var
erchants
=
await
this
.
yzmerchantsignedDao
.
findOne
({
companyName
:
params
.
merchantName
,
...
...
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