...
|
...
|
@@ -214,7 +214,13 @@ class Teacher extends Api |
|
|
$param['before'] = str_replace($http, '', $param['before']);
|
|
|
$param['behind'] = str_replace($http, '', $param['behind']);
|
|
|
$param['thumbnail'] = str_replace($http, '', $param['thumbnail']);
|
|
|
$param['status'] = 0;
|
|
|
|
|
|
$is_true = Db::name('teacher')->where('id',$param['id'])->find();
|
|
|
if($is_true['status'] == 1){
|
|
|
$param['status'] = 1;
|
|
|
}else{
|
|
|
$param['status'] = 0;
|
|
|
}
|
|
|
$param['updatetime'] = time();
|
|
|
$data = Db::name('teacher')->where('id',$param['id'])->update($param);
|
|
|
if (empty($data)) {
|
...
|
...
|
@@ -224,6 +230,11 @@ class Teacher extends Api |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (我的擅长领域)
|
|
|
* @ApiSummary (我的擅长领域)
|
...
|
...
|
|