...
|
...
|
@@ -104,7 +104,7 @@ class User extends Backend |
|
|
if($study) {
|
|
|
$study['third_id'] = $this->model->id;
|
|
|
$res['third_id'] = $study['third_id'];
|
|
|
$res['study_id'] = $params['study_id'];
|
|
|
$res['study_id'] = $study['study_id'];
|
|
|
$res['createtime'] = time();
|
|
|
$res['playtime'] = 0;
|
|
|
$classes_ids = Db::name('classes')->where('study_id',$res['study_id'])->where('is_major',1)->column('id');
|
...
|
...
|
@@ -112,9 +112,6 @@ class User extends Backend |
|
|
$res['class_id'] = $v;
|
|
|
Db::name('study_class')->insertGetId($res);
|
|
|
}
|
|
|
if ($this->dataLimit && $this->dataLimitFieldAutoFill) {
|
|
|
$params[$this->dataLimitField] = $this->auth->id;
|
|
|
}
|
|
|
Db::name('third_study')->insertGetId($study);
|
|
|
}
|
|
|
Db::commit();
|
...
|
...
|
|