作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改老师审核状态

... ... @@ -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 (我的擅长领域)
... ...
... ... @@ -7983,7 +7983,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-01-19 13:52:42 </div>
Generated on 2020-01-19 14:38:05 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...