|
@@ -150,7 +150,9 @@ class ActivityApplyItem extends Controller
|
|
|
'end_time' => $nextYear,
|
|
|
'end_int' => strtotime($nextYear)
|
|
|
];
|
|
|
- UserLearn::create($arr);
|
|
|
+ if(!UserLearn::where('type',1)->where('first_id',$act['datum_id'])->where('user_id',$ticket_info['user_id'])->find()) {
|
|
|
+ UserLearn::create($arr);
|
|
|
+ }
|
|
|
}
|
|
|
//资料
|
|
|
if($act['datum_id'] && $act['datum_id'] != 0){
|
|
@@ -176,7 +178,9 @@ class ActivityApplyItem extends Controller
|
|
|
'end_time' => $nextYear,
|
|
|
'end_int' => strtotime($nextYear)
|
|
|
];
|
|
|
- UserLearn::create($arr);
|
|
|
+ if(!UserLearn::where('type',3)->where('first_id',$act['datum_id'])->where('user_id',$ticket_info['user_id'])->find()) {
|
|
|
+ UserLearn::create($arr);
|
|
|
+ }
|
|
|
}
|
|
|
//新增内容end
|
|
|
|