Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘小敏
loveisland
Commits
de61974e
Commit
de61974e
authored
Jul 07, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(helper): 修复custom_log调用参数并添加调试日志
parent
1eba0453
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
helper.php
addons/shopro/helper/helper.php
+1
-1
OrderPaid.php
addons/shopro/job/OrderPaid.php
+3
-0
No files found.
addons/shopro/helper/helper.php
View file @
de61974e
...
@@ -625,7 +625,7 @@ if (!function_exists('format_log_error')) {
...
@@ -625,7 +625,7 @@ if (!function_exists('format_log_error')) {
$logInfo
=
implode
(
PHP_EOL
,
$logInfo
)
.
PHP_EOL
;
$logInfo
=
implode
(
PHP_EOL
,
$logInfo
)
.
PHP_EOL
;
\think\Log
::
error
(
$logInfo
);
\think\Log
::
error
(
$logInfo
);
custom_log
(
$logInfo
,
'gen_ai
'
);
custom_log
(
$logInfo
,
0
,
'error
'
);
}
}
}
}
...
...
addons/shopro/job/OrderPaid.php
View file @
de61974e
...
@@ -24,9 +24,12 @@ class OrderPaid extends BaseJob
...
@@ -24,9 +24,12 @@ class OrderPaid extends BaseJob
public
function
paid
(
Job
$job
,
$data
)
public
function
paid
(
Job
$job
,
$data
)
{
{
try
{
try
{
custom_log
(
json_encode
(
$data
)
,
0
,
'debug_0707'
);
$order
=
$data
[
'order'
];
$order
=
$data
[
'order'
];
$user
=
$data
[
'user'
];
$user
=
$data
[
'user'
];
$order
=
Order
::
with
(
'items'
)
->
where
(
'id'
,
$order
[
'id'
])
->
find
();
$order
=
Order
::
with
(
'items'
)
->
where
(
'id'
,
$order
[
'id'
])
->
find
();
$user
=
User
::
get
(
$user
[
'id'
]);
$user
=
User
::
get
(
$user
[
'id'
]);
...
...
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