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
bab9c9c5
Commit
bab9c9c5
authored
Aug 17, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
e00966c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
apps/classroom/Lib/Model/ZyServiceModel.class.php
+2
-4
No files found.
apps/classroom/Lib/Model/ZyServiceModel.class.php
View file @
bab9c9c5
...
@@ -408,7 +408,6 @@ class ZyServiceModel
...
@@ -408,7 +408,6 @@ class ZyServiceModel
*/
*/
public
function
buyOnlineVideo
(
$uid
,
$video_id
,
$ext_data
=
array
(),
$ext_mount
=
[],
$asb
)
public
function
buyOnlineVideo
(
$uid
,
$video_id
,
$ext_data
=
array
(),
$ext_mount
=
[],
$asb
)
{
{
var_dump
(
'log: 1'
);
if
(
$this
->
checkVideoAccess
(
$uid
,
$video_id
))
{
if
(
$this
->
checkVideoAccess
(
$uid
,
$video_id
))
{
return
1
;
return
1
;
}
}
...
@@ -427,10 +426,8 @@ class ZyServiceModel
...
@@ -427,10 +426,8 @@ class ZyServiceModel
))
->
field
(
"id,uid,video_title,mhm_id,teacher_id,v_price,t_price,vip_level,endtime,starttime,limit_discount,term"
)
->
find
();
))
->
field
(
"id,uid,video_title,mhm_id,teacher_id,v_price,t_price,vip_level,endtime,starttime,limit_discount,term"
)
->
find
();
//找不到课程
//找不到课程
if
(
!
$video
)
{
if
(
!
$video
)
{
var_dump
(
'log: 2'
);
return
2
;
return
2
;
}
}
var_dump
(
'log: 3'
);
$error_return
=
$this
->
_errorReturn
(
$video
,
'course'
);
$error_return
=
$this
->
_errorReturn
(
$video
,
'course'
);
if
(
$error_return
!==
false
)
{
if
(
$error_return
!==
false
)
{
return
$error_return
;
return
$error_return
;
...
@@ -528,7 +525,6 @@ class ZyServiceModel
...
@@ -528,7 +525,6 @@ class ZyServiceModel
// 添加分成明细
// 添加分成明细
$price
=
isset
(
$ext_data
[
'price'
])
?
$ext_data
[
'price'
]
:
$prices
[
'price'
];
$price
=
isset
(
$ext_data
[
'price'
])
?
$ext_data
[
'price'
]
:
$prices
[
'price'
];
$split_status
=
$this
->
addSplit
(
$id
,
$uid
,
$video
,
$price
,
'course'
,
[],
$mount_id
);
$split_status
=
$this
->
addSplit
(
$id
,
$uid
,
$video
,
$price
,
'course'
,
[],
$mount_id
);
var_dump
(
'log: 5'
);
if
(
!
$split_status
)
{
if
(
!
$split_status
)
{
//创建订单明细流水失败 并删除此订单
//创建订单明细流水失败 并删除此订单
M
(
'zy_order_course'
)
->
where
(
array
(
'id'
=>
$id
))
->
delete
();
M
(
'zy_order_course'
)
->
where
(
array
(
'id'
=>
$id
))
->
delete
();
...
@@ -1661,7 +1657,9 @@ class ZyServiceModel
...
@@ -1661,7 +1657,9 @@ class ZyServiceModel
$old_proportion
=
$school_proportion
;
$old_proportion
=
$school_proportion
;
}
else
{
}
else
{
$utype
=
$type
==
'course_line'
?
'CourseLine'
:
$type
;
$utype
=
$type
==
'course_line'
?
'CourseLine'
:
$type
;
var_dump
(
"log:
{
$utype
}
"
);
$old_proportion
=
model
(
'Xdata'
)
->
get
(
"admin_Config:divideInto"
.
ucwords
(
$utype
)
.
"Config"
);
$old_proportion
=
model
(
'Xdata'
)
->
get
(
"admin_Config:divideInto"
.
ucwords
(
$utype
)
.
"Config"
);
var_dump
(
"log:
{
$old_proportion
}
"
);
}
}
//分成比例
//分成比例
...
...
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