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
309a157a
Commit
309a157a
authored
Jul 29, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
1f243d91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
bpo-web/app/base/api/impl/bpoSDPJApi.js
+4
-0
bpo-web/app/base/db/models/ccashinfo.js
+1
-1
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
309a157a
...
@@ -67,6 +67,9 @@ class BpoSDPJApi {
...
@@ -67,6 +67,9 @@ class BpoSDPJApi {
if
(
!
obj
.
outTradeNo
)
{
if
(
!
obj
.
outTradeNo
)
{
return
this
.
getBaseResult
(
1002001
,
"商户订单号[outTradeNo]不存在"
);
return
this
.
getBaseResult
(
1002001
,
"商户订单号[outTradeNo]不存在"
);
}
}
if
(
!
obj
.
notifyUrl
)
{
return
this
.
getBaseResult
(
1002001
,
"商户订单号[notifyUrl]不存在"
);
}
let
otnLen
=
this
.
trim
(
obj
.
outTradeNo
).
length
;
let
otnLen
=
this
.
trim
(
obj
.
outTradeNo
).
length
;
if
(
otnLen
<
10
||
otnLen
>
32
)
{
if
(
otnLen
<
10
||
otnLen
>
32
)
{
return
this
.
getBaseResult
(
1002001
,
"商户订单号[outTradeNo]长度10-32"
);
return
this
.
getBaseResult
(
1002001
,
"商户订单号[outTradeNo]长度10-32"
);
...
@@ -128,6 +131,7 @@ class BpoSDPJApi {
...
@@ -128,6 +131,7 @@ class BpoSDPJApi {
_cCashInfo
.
amt
=
Number
(
obj
.
amt
||
0
);
_cCashInfo
.
amt
=
Number
(
obj
.
amt
||
0
);
_cCashInfo
.
idName
=
this
.
trim
(
obj
.
idName
)
||
""
;
_cCashInfo
.
idName
=
this
.
trim
(
obj
.
idName
)
||
""
;
_cCashInfo
.
idNo
=
this
.
trim
(
obj
.
idNo
)
||
""
;
_cCashInfo
.
idNo
=
this
.
trim
(
obj
.
idNo
)
||
""
;
_cCashInfo
.
notify_url
=
this
.
trim
(
obj
.
notifyUrl
)
||
""
;
// 保存签约数据
// 保存签约数据
_cCashInfo
=
await
this
.
ccashinfoSve
.
create
(
_cCashInfo
);
_cCashInfo
=
await
this
.
ccashinfoSve
.
create
(
_cCashInfo
);
}
}
...
...
bpo-web/app/base/db/models/ccashinfo.js
View file @
309a157a
...
@@ -63,7 +63,7 @@ module.exports = (db, DataTypes) => {
...
@@ -63,7 +63,7 @@ module.exports = (db, DataTypes) => {
type
:
DataTypes
.
BIGINT
,
type
:
DataTypes
.
BIGINT
,
allowNull
:
true
,
allowNull
:
true
,
},
},
notify_
api
:{
notify_
url
:{
type
:
DataTypes
.
STRING
,
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
allowNull
:
true
,
},
},
...
...
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