Commit bab9c9c5 by 冷斌

fix bug

parent e00966c8
......@@ -408,7 +408,6 @@ class ZyServiceModel
*/
public function buyOnlineVideo($uid, $video_id, $ext_data = array(), $ext_mount = [], $asb)
{
var_dump('log: 1');
if ($this->checkVideoAccess($uid, $video_id)) {
return 1;
}
......@@ -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();
//找不到课程
if (!$video) {
var_dump('log: 2');
return 2;
}
var_dump('log: 3');
$error_return = $this->_errorReturn($video, 'course');
if ($error_return !== false) {
return $error_return;
......@@ -528,7 +525,6 @@ class ZyServiceModel
// 添加分成明细
$price = isset($ext_data['price']) ? $ext_data['price'] : $prices['price'];
$split_status = $this->addSplit($id, $uid, $video, $price, 'course', [], $mount_id);
var_dump('log: 5');
if (!$split_status) {
//创建订单明细流水失败 并删除此订单
M('zy_order_course')->where(array('id' => $id))->delete();
......@@ -1661,7 +1657,9 @@ class ZyServiceModel
$old_proportion = $school_proportion;
} else {
$utype = $type == 'course_line' ? 'CourseLine' : $type;
var_dump("log: {$utype}");
$old_proportion = model('Xdata')->get("admin_Config:divideInto" . ucwords($utype) . "Config");
var_dump("log: {$old_proportion}");
}
//分成比例
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment