Commit d7ae9335 by biao

1

parent 20b009a0
<?php
// 获取分类
require_once ("../user_include.inc");
ErrorLogger::doOutput("Compass...ajax_get_course_category.php....Start.", 0);
//根据常量获取定义的值
$parentCategorys = CourseParentCategory::getList();
//获取对应的二级分类
//检索数据库
$param['name'] = $constName;
$param['delete_flg'] = false;
$systemConstantDatList = SystemConstantDat::getList($param,'id','desc', 0, 1);
if(!empty($systemConstantDatList)) {
$constValue = $systemConstantDatList[0]->constant_value;
}
ErrorLogger::doOutput("Compass...ajax_get_course_category.php....constValue=" . $constValue, 0);
ErrorLogger::doOutput("Compass...ajax_get_course_category.php....End.", 0);
//如果为空说明未设定该参数的值
if(empty($constValue)) {
responseNG("系统设定错误!");
}
//返回结果
responseOK($constValue);
function responseNG($result) {
$result = array("status"=>"NG", "result"=>$result);
print json_encode($result);
exit;
}
function responseOK($result) {
$result = array("status"=>"OK", "result"=>$result);
print json_encode($result);
exit;
}
?>
\ No newline at end of file
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