Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ylc.llewan.com
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
llewan
ylc.llewan.com
Commits
713e414a
Commit
713e414a
authored
Sep 20, 2018
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改竞拍日期名称
parent
bcdea508
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
AuctionController.class.php
Application/Home/Controller/AuctionController.class.php
+11
-1
No files found.
Application/Home/Controller/AuctionController.class.php
View file @
713e414a
...
@@ -257,12 +257,21 @@ class AuctionController extends BaseController
...
@@ -257,12 +257,21 @@ class AuctionController extends BaseController
}
}
$mid
=
strtotime
(
$val
[
'date'
])
-
strtotime
(
date
(
'Y-m-d'
));
//获取一个用于分割的关键字,一般是首个元素
$mid
=
strtotime
(
$val
[
'date'
])
-
strtotime
(
date
(
'Y-m-d'
));
//获取一个用于分割的关键字,一般是首个元素
if
(
$mid
>=
0
)
{
if
(
$mid
>=
0
)
{
if
(
$mid
==
0
)
{
$goodsList
[
$key
][
'name'
]
=
'今日竞拍'
;
}
else
{
$goodsList
[
$key
][
'name'
]
=
'竞拍预告'
;
}
$leftArray
[]
=
$goodsList
[
$key
];
$leftArray
[]
=
$goodsList
[
$key
];
}
else
{
}
else
{
$goodsList
[
$key
][
'name'
]
=
'往期竞拍'
;
$rightArray
[]
=
$goodsList
[
$key
];
$rightArray
[]
=
$goodsList
[
$key
];
}
}
}
}
$goodsList
=
array_merge
(
$leftArray
,
$rightArray
);
//组合两个结果
$goodsList
=
array_merge
(
$leftArray
,
$rightArray
);
//组合两个结果
if
(
$goodsList
[
0
][
'name'
]
==
'竞拍预告'
)
{
$goodsList
[
0
][
'name'
]
=
'最新预告'
;
}
$result
=
array
(
$result
=
array
(
'c'
=>
1
'c'
=>
1
...
@@ -313,11 +322,12 @@ class AuctionController extends BaseController
...
@@ -313,11 +322,12 @@ class AuctionController extends BaseController
'uid'
=>
$uid
'uid'
=>
$uid
,
'bid_price'
=>
''
,
'bid_price'
=>
''
,
'bid_num'
=>
0
,
'bid_num'
=>
0
,
'bid_total'
=>
0
,
'status'
=>
1
,
'status'
=>
1
);
);
$enrollNum
=
0
;
$enrollNum
=
0
;
$userList
=
M
(
"game_auction_enroll"
,
""
,
C
(
"LEWAN_HEZI"
))
->
where
(
array
(
'game_code'
=>
'ylc'
,
'goods_id'
=>
$goodsId
))
->
field
(
'uid,bid_price,bid_num'
)
->
select
();
$userList
=
M
(
"game_auction_enroll"
,
""
,
C
(
"LEWAN_HEZI"
))
->
where
(
array
(
'game_code'
=>
'ylc'
,
'goods_id'
=>
$goodsId
))
->
field
(
'uid,bid_price,bid_num
,bid_total
'
)
->
select
();
foreach
(
$userList
as
$key
=>
$value
)
{
foreach
(
$userList
as
$key
=>
$value
)
{
if
(
$value
[
'uid'
]
==
$uid
)
{
if
(
$value
[
'uid'
]
==
$uid
)
{
$userArr
=
$value
;
$userArr
=
$value
;
...
...
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