更新
This commit is contained in:
parent
852f1d9599
commit
203ca1137d
@ -22,6 +22,11 @@ class InformationController extends BaseApiController
|
||||
if(isset($param['arr']) && count($param['arr'])>0){
|
||||
$data[] =['id','in', $param['arr']];
|
||||
}
|
||||
if(isset($param['is_update'])&&$param['is_update']>0){
|
||||
$data[] =['is_update','=', 1];
|
||||
}else{
|
||||
$data[] =['is_update','=', 0];
|
||||
}
|
||||
$res = UserInformationg::list($data,$page,$limit);
|
||||
if ($res != true) {
|
||||
return $this->fail( BaseLogic::getError());
|
||||
@ -100,7 +105,7 @@ class InformationController extends BaseApiController
|
||||
}
|
||||
|
||||
UserInformationg::where('id',$param['id'])->update(['update_time'=>time(),'is_update'=>1]);
|
||||
|
||||
|
||||
return $this->success('成功');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user