作者 赵彬吉

update

... ... @@ -114,7 +114,10 @@ class SyncSubmitTaskService
public function subscribe($data, $date, $task_id){
$email = $data['data']['email'];
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
$model = new Email();
$model = Email::where('email', $email)->first();
if($model){
return true;
}
$model->email = $email;
$model->save();
}else{
... ...