Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pay
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
pay
Commits
38b058d6
Commit
38b058d6
authored
Jul 21, 2021
by
万继龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
Develop See merge request bp/pay!26
parents
862a8d43
c1eaccf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
PayService.php
application/services/pay/PayService.php
+2
-1
PingxxService.php
application/services/pingxx/PingxxService.php
+10
-9
No files found.
application/services/pay/PayService.php
View file @
38b058d6
...
@@ -291,7 +291,8 @@ class PayService
...
@@ -291,7 +291,8 @@ class PayService
return
true
;
return
true
;
}
}
$clearing_items
=
PayOrderClearingItem
::
select
(
'*'
,
//注意查找需要保证pdo是一个,避免数据操作超时
$clearing_items
=
PayOrderClearingItem
::
selectMaster
(
'*'
,
[
'order_item_id'
=>
$order_item_id
]
[
'order_item_id'
=>
$order_item_id
]
);
);
...
...
application/services/pingxx/PingxxService.php
View file @
38b058d6
...
@@ -57,13 +57,13 @@ class PingxxService
...
@@ -57,13 +57,13 @@ class PingxxService
);
);
//Mon 日志监控增加
//Mon 日志监控增加
$end
=
microtime
(
true
);
//计算结束时间
$end
=
microtime
(
true
);
//计算结束时间
FileLog
::
info
(
'pingxx-sendRefund:'
.
'退款订单返回'
,
json_encode
([
'req'
=>
$refundData
,
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$url
=
'pingxx/v1/refund/create'
;
$url
=
'pingxx/v1/refund/create'
;
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
FileLog
::
info
(
'pingxx-sendRefund:'
.
'退款订单返回'
,
json_encode
([
'req'
=>
$refundData
,
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$response
=
json_decode
(
$ret
,
true
);
$response
=
json_decode
(
$ret
,
true
);
}
catch
(
\Pingpp\Error\Base
$e
)
{
}
catch
(
\Pingpp\Error\Base
$e
)
{
...
@@ -97,12 +97,12 @@ class PingxxService
...
@@ -97,12 +97,12 @@ class PingxxService
$ret
=
OrderRefund
::
retrieve
(
$orderId
,
$refundId
);
$ret
=
OrderRefund
::
retrieve
(
$orderId
,
$refundId
);
$end
=
microtime
(
true
);
//计算结束时间
$end
=
microtime
(
true
);
//计算结束时间
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
FileLog
::
info
(
'pingxx-getRefund:'
.
'退款查询返回'
,
json_encode
([
'req'
=>
[
$orderId
,
$refundId
],
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$url
=
'pingxx/v1/refund/get'
;
$url
=
'pingxx/v1/refund/get'
;
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
FileLog
::
info
(
'pingxx-getRefund:'
.
'退款查询返回'
,
json_encode
([
'req'
=>
[
$orderId
,
$refundId
],
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$respose
=
json_decode
(
$ret
,
true
);
$respose
=
json_decode
(
$ret
,
true
);
}
catch
(
\Pingpp\Error\Base
$e
)
{
}
catch
(
\Pingpp\Error\Base
$e
)
{
...
@@ -148,12 +148,12 @@ class PingxxService
...
@@ -148,12 +148,12 @@ class PingxxService
);
);
$end
=
microtime
(
true
);
//计算结束时间
$end
=
microtime
(
true
);
//计算结束时间
FileLog
::
info
(
'pingxx-createOrder:'
.
'创建订单返回'
,
json_encode
([
'req'
=>
[
$order
,
$metadata
],
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$url
=
'pingxx/v1/order/create'
;
$url
=
'pingxx/v1/order/create'
;
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
FileLog
::
info
(
'pingxx-createOrder:'
.
'创建订单返回'
,
json_encode
([
'req'
=>
[
$order
,
$metadata
],
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$respose
=
json_decode
(
$ret
,
true
);
$respose
=
json_decode
(
$ret
,
true
);
}
catch
(
\Pingpp\Error\Base
$e
)
{
}
catch
(
\Pingpp\Error\Base
$e
)
{
...
@@ -189,11 +189,12 @@ class PingxxService
...
@@ -189,11 +189,12 @@ class PingxxService
$ret
=
Order
::
pay
(
$orderId
,
$pay
);
$ret
=
Order
::
pay
(
$orderId
,
$pay
);
$end
=
microtime
(
true
);
//计算结束时间
$end
=
microtime
(
true
);
//计算结束时间
FileLog
::
info
(
'pingxx-pay:'
.
'订单pay返回'
,
json_encode
([
'req'
=>
[
$orderId
,
$pay
],
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$url
=
'pingxx/v1/order/pay'
;
$url
=
'pingxx/v1/order/pay'
;
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
FileLog
::
info
(
'pingxx-pay:'
.
'订单pay返回'
,
json_encode
([
'req'
=>
[
$orderId
,
$pay
],
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$respose
=
json_decode
(
$ret
,
true
);
$respose
=
json_decode
(
$ret
,
true
);
}
catch
(
\Pingpp\Error\Base
$e
)
{
}
catch
(
\Pingpp\Error\Base
$e
)
{
...
@@ -226,12 +227,12 @@ class PingxxService
...
@@ -226,12 +227,12 @@ class PingxxService
$ret
=
Order
::
retrieve
(
$orderId
);
$ret
=
Order
::
retrieve
(
$orderId
);
$end
=
microtime
(
true
);
//计算结束时间
$end
=
microtime
(
true
);
//计算结束时间
FileLog
::
info
(
'pingxx-pay:'
.
'查询订单返回'
,
json_encode
([
'req'
=>
[
$orderId
],
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$total_time
=
round
((
$end
-
$start
),
4
)
*
1000
;
//计算耗时
$url
=
'pingxx/v1/order/get'
;
$url
=
'pingxx/v1/order/get'
;
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
MonUtil
::
proxyMon
(
$url
,
'200'
,
'bp-pay'
,
$total_time
);
FileLog
::
info
(
'pingxx-pay:'
.
'查询订单返回'
,
json_encode
([
'req'
=>
[
$orderId
],
'res'
=>
$ret
],
JSON_UNESCAPED_UNICODE
));
$respose
=
json_decode
(
$ret
,
true
);
$respose
=
json_decode
(
$ret
,
true
);
}
catch
(
\Pingpp\Error\Base
$e
)
{
}
catch
(
\Pingpp\Error\Base
$e
)
{
...
...
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