|
|
|
|
@ -153,7 +153,7 @@ class VisitController extends CommonController
|
|
|
|
|
$template_id = '5wReg1';
|
|
|
|
|
sms($acceptAdmin->mobile, $vars, $template_id);
|
|
|
|
|
// 短信通知第一个审核人
|
|
|
|
|
VisitAudit::smsNextAudit($model);
|
|
|
|
|
VisitAudit::smsNextAudit($model, -1);
|
|
|
|
|
DB::commit();
|
|
|
|
|
return $this->success('更新成功');
|
|
|
|
|
} catch (\Exception $exception) {
|
|
|
|
|
@ -326,7 +326,7 @@ class VisitController extends CommonController
|
|
|
|
|
$model = new StudyLog();
|
|
|
|
|
$list = $model->whereIn('idcard', $all['idcard'])->pluck('idcard');
|
|
|
|
|
$diff = collect($all['idcard'])->diff($list);
|
|
|
|
|
if($diff->isNotEmpty()){
|
|
|
|
|
if ($diff->isNotEmpty()) {
|
|
|
|
|
$diff = array_values($diff->toArray());
|
|
|
|
|
}
|
|
|
|
|
return $this->success($diff);
|
|
|
|
|
|