|
@@ -43,11 +43,13 @@ class Trainactive extends Api
|
|
|
if($info['status'] != 1){
|
|
|
$this->error('该培训已下架');
|
|
|
}
|
|
|
- if($info['userauth_status'] == 0 && $this->auth->idcard_status != 1){
|
|
|
- $this->error('您未实名,不能签到该培训活动');
|
|
|
- }
|
|
|
- if(!in_array($this->auth->id,explode(',',$info['user_ids']))){
|
|
|
- $this->error('您不能签到该培训活动');
|
|
|
+ if($info['userauth_status'] == 0){
|
|
|
+ /*if($this->auth->idcard_status != 1){
|
|
|
+ $this->error('您未实名,不能签到该培训活动');
|
|
|
+ }*/
|
|
|
+ if(!in_array($this->auth->id,explode(',',$info['user_ids']))){
|
|
|
+ $this->error('您不在该培训活动名单');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$map = [
|