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
40a744af
Commit
40a744af
authored
Jul 04, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
0c925a13
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
esign-api/app/base/api/api.base.js
+1
-1
esign-api/app/base/api/impl/sign/signApi.js
+2
-2
esign-api/app/base/service/impl/sign/signSve.js
+13
-13
No files found.
esign-api/app/base/api/api.base.js
View file @
40a744af
...
@@ -26,7 +26,7 @@ class APIBase extends DocBase {
...
@@ -26,7 +26,7 @@ class APIBase extends DocBase {
let
appId
=
this
.
trim
(
params
.
appId
);
let
appId
=
this
.
trim
(
params
.
appId
);
let
timestamp
=
Number
(
params
.
timestamp
);
let
timestamp
=
Number
(
params
.
timestamp
);
let
nonceStr
=
Number
(
params
.
nonceStr
);
let
nonceStr
=
this
.
trim
(
params
.
nonceStr
);
let
now
=
new
Date
().
getTime
();
let
now
=
new
Date
().
getTime
();
if
(
now
-
timestamp
>
60
*
60
*
60
*
1000
)
{
if
(
now
-
timestamp
>
60
*
60
*
60
*
1000
)
{
return
system
.
getResultFail
(
1000000
,
"请求超时"
);
return
system
.
getResultFail
(
1000000
,
"请求超时"
);
...
...
esign-api/app/base/api/impl/sign/signApi.js
View file @
40a744af
var
APIBase
=
require
(
"../../api.base"
);
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
var
system
=
require
(
"../../../system"
);
class
Test
API
extends
APIBase
{
class
Sign
API
extends
APIBase
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
signSve
=
system
.
getObject
(
"service.sign.signSve"
);
this
.
signSve
=
system
.
getObject
(
"service.sign.signSve"
);
...
@@ -103,4 +103,4 @@ class TestAPI extends APIBase {
...
@@ -103,4 +103,4 @@ class TestAPI extends APIBase {
}
}
}
}
module
.
exports
=
Test
API
;
module
.
exports
=
Sign
API
;
esign-api/app/base/service/impl/sign/signSve.js
View file @
40a744af
...
@@ -96,21 +96,21 @@ class AuthService extends ServiceBase {
...
@@ -96,21 +96,21 @@ class AuthService extends ServiceBase {
if
(
isFee
)
{
if
(
isFee
)
{
// 生成订单
// 生成订单
let
logres
=
await
this
.
orderauthlogSve
.
saveEorderAuthLog
({
//
let logres = await this.orderauthlogSve.saveEorderAuthLog({
order_id
:
orderProduct
.
id
,
//
order_id: orderProduct.id,
product_id
:
orderProduct
.
product_id
,
//
product_id: orderProduct.product_id,
platform_name
:
app
.
name
,
//
platform_name: app.name,
platform_id
:
app
.
id
,
//
platform_id: app.id,
spended_num
:
trade
.
trade_amt
,
//
spended_num: trade.trade_amt,
user_name
:
params
.
idName
,
// 使用方
//
user_name: params.idName, // 使用方
actual_spend_name
:
app
.
merchant_name
,
// 实际使用方
//
actual_spend_name: app.merchant_name,// 实际使用方
engine_trade_id
:
trade
.
id
,
//
engine_trade_id: trade.id,
pass
:
pass
?
1
:
0
//
pass: pass ? 1 : 0
});
//
});
console
.
log
(
logres
);
//
console.log(logres);
}
}
// 4. 返回认证结果
// 4. 返回认证结果
return
system
.
getResultSuccess
(
"TODO 返回具体参数"
,
res
.
msg
);
return
system
.
getResultSuccess
(
res
.
data
,
res
.
msg
);
}
}
// 交易
// 交易
...
...
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