|
@@ -425,6 +425,8 @@ class NewsService implements NewsServiceInterface
|
|
if (!$result) {
|
|
if (!$result) {
|
|
throw new \Exception("投票失败");
|
|
throw new \Exception("投票失败");
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ $result = Article::where('id', $id)->update(['survey_id' => '', 'survey_name' => '', 'is_survey' => 0]);
|
|
}
|
|
}
|
|
Db::commit();
|
|
Db::commit();
|
|
return Result::success([]);
|
|
return Result::success([]);
|