Commit 409f141b by 冷斌

fix bug

parent 19a60cdc
......@@ -391,7 +391,7 @@ class ZyServiceModel
}
}
return $mz_price['price'];
}
}
/**
* 在线直接购买单个课程
......@@ -583,10 +583,11 @@ class ZyServiceModel
//查询教师用户uid
$teacher_uid = M('zy_teacher')->where(array('id' => $video['teacher_id']))->getField('uid');
$teacher_uid = M('user')->where(array('uid' => $teacher_uid))->getField('uid');
$teacher_uid = 0;
if (!$teacher_uid) {
return 8;
}
// if (!$teacher_uid) {
// return 8;
// }
//生成状态为未支付的订单数据
$order = D('ZyOrderCourse', 'course');
......@@ -1060,7 +1061,7 @@ class ZyServiceModel
$prices = getClassesPrice($classes_id, $uid);
// $prices['price'] = $this->_getBgnPrice($uid, $video_id, 1, $prices);
//生成状态为未支付的订单数据
$order = D('ZyOrderCourse', 'course');
$data = array(
......@@ -1547,7 +1548,7 @@ class ZyServiceModel
$table_split = 'zy_split_teacher';
break;
case 'classes':
$section && $section_name = $section['pid'] == 0 ? '科目':'课时';
$section && $section_name = $section['pid'] == 0 ? '科目':'课时';
$note = $section ? t("购买班级{$section_name}{$course_data['video_title']}-{$section['title']}。") : t("购买班级课程:{$course_data['video_title']}。");
$id_name = 'vid';
$type = 6;
......
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