修复bug
This commit is contained in:
parent
2d35f7f531
commit
96d9c7a487
@ -1104,10 +1104,13 @@ class Activity extends BaseModel
|
||||
* @throws \think\exception\DbException
|
||||
*/
|
||||
public function detail($id,$user_id=0,$oper_type='user',$trans=false){
|
||||
|
||||
//更新课程状态
|
||||
$this->updateStatus($id);
|
||||
$self = $this->get($id,['user']);
|
||||
|
||||
|
||||
|
||||
//只查user的名字
|
||||
// $self->getRelation('user')->visible(['nickname']);
|
||||
|
||||
@ -1353,8 +1356,10 @@ class Activity extends BaseModel
|
||||
if($params){
|
||||
$res = $row->allowField(true)->save($params);
|
||||
}
|
||||
// $row = self::get($id);
|
||||
// var_dump($row["audit_status"]);
|
||||
//如果审核状态是审核中,并且时间已经到了3=待开始,4=进行中,则活动自动取消
|
||||
if(($row["status"]=='3' || $row["status"]=='4') && $row["audit_status"]=='0'){
|
||||
if(($row["status"]=='3' || $row["status"]=='4') && $row["auth_status"]=='0'){
|
||||
//直接改为审核失败
|
||||
$row["auth_time"] = time();
|
||||
$row["reason"] = "超期系统自动审核失败,请重发该活动";
|
||||
|
Loading…
x
Reference in New Issue
Block a user