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
65cb92f7
Commit
65cb92f7
authored
Sep 19, 2018
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报名金币
parent
21f4d58d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
AuctionController.class.php
Application/Home/Controller/AuctionController.class.php
+3
-5
BaseController.class.php
Application/Home/Controller/BaseController.class.php
+5
-5
AuctionModel.class.php
Application/Home/Model/AuctionModel.class.php
+3
-0
No files found.
Application/Home/Controller/AuctionController.class.php
View file @
65cb92f7
...
@@ -9,8 +9,6 @@ class AuctionController extends BaseController
...
@@ -9,8 +9,6 @@ class AuctionController extends BaseController
{
{
//倒计时
//倒计时
public
$countdown
=
150
;
public
$countdown
=
150
;
//报名金币
public
$enrollGold
=
100
;
//竞拍商品列表
//竞拍商品列表
public
$goodsList
=
array
(
public
$goodsList
=
array
(
...
@@ -37,7 +35,7 @@ class AuctionController extends BaseController
...
@@ -37,7 +35,7 @@ class AuctionController extends BaseController
,
'initial_price'
=>
10
,
'initial_price'
=>
10
,
'bid_price'
=>
10
,
'bid_price'
=>
10
,
'enroll_price'
=>
10
,
'enroll_price'
=>
10
,
'start_time'
=>
'2018-09-19 20:
08
'
,
'start_time'
=>
'2018-09-19 20:
50
'
,
'end_time'
=>
''
,
'end_time'
=>
''
,
'status'
=>
'1'
,
'status'
=>
'1'
)
)
...
@@ -78,7 +76,7 @@ class AuctionController extends BaseController
...
@@ -78,7 +76,7 @@ class AuctionController extends BaseController
,
'initial_price'
=>
10
,
'initial_price'
=>
10
,
'bid_price'
=>
10
,
'bid_price'
=>
10
,
'enroll_price'
=>
10
,
'enroll_price'
=>
10
,
'start_time'
=>
'2018-09-19 2
0:3
0'
,
'start_time'
=>
'2018-09-19 2
1:0
0'
,
'end_time'
=>
''
,
'end_time'
=>
''
,
'status'
=>
'1'
,
'status'
=>
'1'
)
)
...
@@ -416,7 +414,7 @@ class AuctionController extends BaseController
...
@@ -416,7 +414,7 @@ class AuctionController extends BaseController
//保存报名信息
//保存报名信息
$model
=
new
\Home\Model\AuctionModel
();
$model
=
new
\Home\Model\AuctionModel
();
$result
=
$model
->
enrollSave
(
$uid
,
$goodsId
,
$remind
,
$
this
->
enrollGold
);
$result
=
$model
->
enrollSave
(
$uid
,
$goodsId
,
$remind
,
$
goodsInfo
[
'enroll_price'
]
);
echo
$this
->
formatRes
(
$result
);
exit
;
echo
$this
->
formatRes
(
$result
);
exit
;
}
}
...
...
Application/Home/Controller/BaseController.class.php
View file @
65cb92f7
...
@@ -52,7 +52,7 @@ class BaseController extends Controller {
...
@@ -52,7 +52,7 @@ class BaseController extends Controller {
array
(
array
(
'ch_name'
=>
'邀请1位新伙伴'
'ch_name'
=>
'邀请1位新伙伴'
,
'en_name'
=>
'invite_user1'
,
'en_name'
=>
'invite_user1'
,
'head'
=>
'http
://hezi.test.llewan.com/hezi/task/invite_user
.png'
,
'head'
=>
'http
s://res.g.llewan.com/zuiqiangyoulechang/task/moren
.png'
,
'target'
=>
'1'
,
'target'
=>
'1'
,
'schedule'
=>
'0'
,
'schedule'
=>
'0'
,
'gold'
=>
'100'
,
'gold'
=>
'100'
...
@@ -61,7 +61,7 @@ class BaseController extends Controller {
...
@@ -61,7 +61,7 @@ class BaseController extends Controller {
,
array
(
,
array
(
'ch_name'
=>
'邀请2位新伙伴'
'ch_name'
=>
'邀请2位新伙伴'
,
'en_name'
=>
'invite_user2'
,
'en_name'
=>
'invite_user2'
,
'head'
=>
'http
://hezi.test.llewan.com/hezi/task/invite_user
.png'
,
'head'
=>
'http
s://res.g.llewan.com/zuiqiangyoulechang/task/moren
.png'
,
'target'
=>
'2'
,
'target'
=>
'2'
,
'schedule'
=>
'0'
,
'schedule'
=>
'0'
,
'gold'
=>
'100'
,
'gold'
=>
'100'
...
@@ -70,7 +70,7 @@ class BaseController extends Controller {
...
@@ -70,7 +70,7 @@ class BaseController extends Controller {
,
array
(
,
array
(
'ch_name'
=>
'邀请3位新伙伴'
'ch_name'
=>
'邀请3位新伙伴'
,
'en_name'
=>
'invite_user3'
,
'en_name'
=>
'invite_user3'
,
'head'
=>
'http
://hezi.test.llewan.com/hezi/task/invite_user
.png'
,
'head'
=>
'http
s://res.g.llewan.com/zuiqiangyoulechang/task/moren
.png'
,
'target'
=>
'3'
,
'target'
=>
'3'
,
'schedule'
=>
'0'
,
'schedule'
=>
'0'
,
'gold'
=>
'1000'
,
'gold'
=>
'1000'
...
@@ -79,7 +79,7 @@ class BaseController extends Controller {
...
@@ -79,7 +79,7 @@ class BaseController extends Controller {
,
array
(
,
array
(
'ch_name'
=>
'邀请4位新伙伴'
'ch_name'
=>
'邀请4位新伙伴'
,
'en_name'
=>
'invite_user4'
,
'en_name'
=>
'invite_user4'
,
'head'
=>
'http
://hezi.test.llewan.com/hezi/task/invite_user
.png'
,
'head'
=>
'http
s://res.g.llewan.com/zuiqiangyoulechang/task/moren
.png'
,
'target'
=>
'4'
,
'target'
=>
'4'
,
'schedule'
=>
'0'
,
'schedule'
=>
'0'
,
'gold'
=>
'1000'
,
'gold'
=>
'1000'
...
@@ -88,7 +88,7 @@ class BaseController extends Controller {
...
@@ -88,7 +88,7 @@ class BaseController extends Controller {
,
array
(
,
array
(
'ch_name'
=>
'邀请5位新伙伴'
'ch_name'
=>
'邀请5位新伙伴'
,
'en_name'
=>
'invite_user5'
,
'en_name'
=>
'invite_user5'
,
'head'
=>
'http
://hezi.test.llewan.com/hezi/task/invite_user
.png'
,
'head'
=>
'http
s://res.g.llewan.com/zuiqiangyoulechang/task/moren
.png'
,
'target'
=>
'5'
,
'target'
=>
'5'
,
'schedule'
=>
'0'
,
'schedule'
=>
'0'
,
'gold'
=>
'1000'
,
'gold'
=>
'1000'
...
...
Application/Home/Model/AuctionModel.class.php
View file @
65cb92f7
...
@@ -94,6 +94,9 @@ class AuctionModel extends BaseModel
...
@@ -94,6 +94,9 @@ class AuctionModel extends BaseModel
$result
=
array
(
$result
=
array
(
'c'
=>
1
'c'
=>
1
,
'msg'
=>
'报名成功'
,
'msg'
=>
'报名成功'
,
'd'
=>
array
(
'gold'
=>
$gold
)
);
);
}
else
{
}
else
{
$result
=
array
(
$result
=
array
(
...
...
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