|
@@ -157,7 +157,10 @@ class Settlement implements ShouldQueue
|
|
|
|
|
|
//返回各个用户回答的问题
|
|
|
$group_users = Gateway::getUidListByGroup($this->room_id);
|
|
|
- $anwsers = RoomAnswer::select('user_id', 'option_id', 'question_id')->where("question_id", $question_id)->whereIn("user_id", array_values($group_users))->get();
|
|
|
+ $anwsers = RoomAnswer::select('user_id', 'option_id', 'question_id')->where([
|
|
|
+ "question_id", $question_id,
|
|
|
+ "room_id", $this->room_id,
|
|
|
+ ])->whereIn("user_id", array_values($group_users))->get();
|
|
|
$option_id = Option::where([
|
|
|
"question_id" => $question_id,
|
|
|
"is_answer" => 1,
|