Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
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
冷斌
eduline
Commits
c02ca5f5
Commit
c02ca5f5
authored
Jun 16, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
40f18d4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
apps/home/Lib/Action/HomeAction.class.php
+13
-5
No files found.
apps/home/Lib/Action/HomeAction.class.php
View file @
c02ca5f5
...
@@ -361,14 +361,21 @@ class HomeAction extends UserAction
...
@@ -361,14 +361,21 @@ class HomeAction extends UserAction
$val
[
'cover'
]
=
$video
[
'cover'
];
$val
[
'cover'
]
=
$video
[
'cover'
];
$val
[
'course_id'
]
=
$val
[
'video_id'
];
$val
[
'course_id'
]
=
$val
[
'video_id'
];
$val
[
'video_name'
]
=
mStr
(
$video
[
'video_title'
],
20
);
$val
[
'video_name'
]
=
mStr
(
$video
[
'video_title'
],
20
);
$val
[
'course_type'
]
=
-
1
;
$val
[
'course_type'
]
=
1
;
if
(
$val
[
'course_hour_id'
])
{
if
(
$val
[
'course_hour_id'
])
{
$val
[
'course_hour_title'
]
=
D
(
'VideoSection'
,
'course'
)
->
findVideoSectionInfo
(
$val
[
'course_hour_id'
],
'title'
)[
'title'
];
$val
[
'course_hour_title'
]
=
D
(
'VideoSection'
,
'course'
)
->
findVideoSectionInfo
(
$val
[
'course_hour_id'
],
'title'
)[
'title'
];
}
}
$pay_params
=
"
{
$val
[
'video_id'
]
}
,zy_video"
;
$pay_params
.=
$val
[
'coupon_id'
]
>
0
?
",
{
$val
[
'coupon_id'
]
}
"
:
",00"
;
$pay_params
.=
$val
[
'course_hour_id'
]
?
",
{
$val
[
'course_hour_id'
]
}
"
:
",0"
;
$val
[
'pay_url'
]
=
jiami
(
$pay_params
);
//如果是通过套餐购买的课程显示为0元购买
$order_album_id
=
M
(
$table
)
->
where
([
'id'
=>
$val
[
'id'
]])
->
getField
(
'order_album_id'
);
//获取原价
//获取原价
$val
[
'old_price'
]
=
$video
[
'price'
];
$val
[
'old_price'
]
=
$video
[
'
t_
price'
];
}
}
if
(
$table
==
"goods_order"
)
{
if
(
$table
==
"goods_order"
)
{
...
@@ -377,8 +384,8 @@ class HomeAction extends UserAction
...
@@ -377,8 +384,8 @@ class HomeAction extends UserAction
$val
[
'cover'
]
=
$goods
[
'cover'
];
$val
[
'cover'
]
=
$goods
[
'cover'
];
$val
[
'course_id'
]
=
$val
[
'goods_id'
];
$val
[
'course_id'
]
=
$val
[
'goods_id'
];
$val
[
'video_name'
]
=
mStr
(
$
video
[
'title'
],
20
);
$val
[
'video_name'
]
=
mStr
(
$
goods
[
'title'
],
20
);
$val
[
'course_type'
]
=
1
;
$val
[
'course_type'
]
=
-
1
1
;
if
(
$val
[
'course_hour_id'
])
{
if
(
$val
[
'course_hour_id'
])
{
$val
[
'course_hour_title'
]
=
D
(
'VideoSection'
,
'course'
)
->
findVideoSectionInfo
(
$val
[
'course_hour_id'
],
'title'
)[
'title'
];
$val
[
'course_hour_title'
]
=
D
(
'VideoSection'
,
'course'
)
->
findVideoSectionInfo
(
$val
[
'course_hour_id'
],
'title'
)[
'title'
];
...
@@ -392,7 +399,8 @@ class HomeAction extends UserAction
...
@@ -392,7 +399,8 @@ class HomeAction extends UserAction
//如果是通过套餐购买的课程显示为0元购买
//如果是通过套餐购买的课程显示为0元购买
$order_album_id
=
M
(
$table
)
->
where
([
'id'
=>
$val
[
'id'
]])
->
getField
(
'order_album_id'
);
$order_album_id
=
M
(
$table
)
->
where
([
'id'
=>
$val
[
'id'
]])
->
getField
(
'order_album_id'
);
//获取原价
//获取原价
$val
[
'old_price'
]
=
$video
[
't_price'
];
$val
[
'old_price'
]
=
$goods
[
'price'
]
+
$goods
[
'price'
];
$val
[
'price'
]
=
$val
[
'old_price'
];
}
}
if
(
$table
==
"zy_order_live"
)
{
if
(
$table
==
"zy_order_live"
)
{
//取得课程信息
//取得课程信息
...
...
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