|
@@ -11,6 +11,7 @@ use App\Model\Option;
|
|
|
use App\Model\User;
|
|
|
use App\Model\Room;
|
|
|
use App\Model\RoomUser;
|
|
|
+use App\Model\RoomAnser;
|
|
|
use App\Model\RoomQuestion;
|
|
|
use App\Jobs\Distribute;
|
|
|
use GuzzleHttp\Client;
|
|
@@ -146,7 +147,7 @@ class Settlement implements ShouldQueue
|
|
|
|
|
|
//返回各个用户回答的问题
|
|
|
$group_users = Gateway::getUidListByGroup($this->room_id);
|
|
|
- $anwsers = RoomAnser::select('user_id', 'option_id', 'question_id')->whereIn("user_id", array_values($group_users))->get();
|
|
|
+ $anwsers = RoomAnswer::select('user_id', 'option_id', 'question_id')->whereIn("user_id", array_values($group_users))->get();
|
|
|
$option_id = Option::where([
|
|
|
"question_id" => $question_id,
|
|
|
"is_answer" => 1,
|