Commit 560bc962 by 冷斌

fix bug

parent 12819e1b
...@@ -1688,9 +1688,8 @@ class ZyServiceModel ...@@ -1688,9 +1688,8 @@ class ZyServiceModel
unset($school_id); unset($school_id);
$utype = $type == 'course_line' ? 'CourseLine' : $type; $utype = $type == 'course_line' ? 'CourseLine' : $type;
$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: {$utype}"); var_dump($old_proportion);
$old_proportion = array_filter(explode(':', $old_proportion[$type])); $old_proportion = array_filter(explode(':', $old_proportion[$type]));
var_dump("log: {$old_proportion}", $old_proportion);
if (empty($old_proportion)) { if (empty($old_proportion)) {
return 1; return 1;
} }
......
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