Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
blind-box-api
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
haojie
blind-box-api
Commits
8eefbf5e
Commit
8eefbf5e
authored
Mar 17, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8aa58885
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
app/Admin/Controllers/BlindBoxRecordController.php
+7
-4
No files found.
app/Admin/Controllers/BlindBoxRecordController.php
View file @
8eefbf5e
...
...
@@ -113,15 +113,18 @@ protected function grid()
# 是数组
$div
=
''
;
foreach
(
$json
as
$value
)
{
$item
=
''
;
# 查询是否中奖
$record
=
TransferRecord
::
query
()
->
where
(
'blind_box_id'
,
$this
->
id
)
->
whereIn
(
'status'
,
[
1
,
2
])
->
first
([
'status'
,
'hash'
]);
if
(
$record
->
status
==
1
)
{
$item
=
"<span style='color:green;font-weight: bold'>已打款
if
(
$record
)
{
if
(
$record
->
status
==
1
)
{
$item
=
"<span style='color:green;font-weight: bold'>已打款
--
$record->hash
</span>"
;
}
else
{
$item
=
"<span style='color:red;font-weight: bold'>未打款</span>"
;
}
else
{
$item
=
"<span style='color:red;font-weight: bold'>未打款</span>"
;
}
}
$div
=
$div
.
"<div style='margin: 12px 0'>
$value
--
$item
</div>"
;
}
...
...
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