$next_question
This commit is contained in:
@@ -14,13 +14,16 @@ class WrenchResources extends BaseController
|
|||||||
$raw_json = file_get_contents('php://input');
|
$raw_json = file_get_contents('php://input');
|
||||||
$in = json_decode($raw_json, true);
|
$in = json_decode($raw_json, true);
|
||||||
|
|
||||||
$out = [
|
$next_question = [
|
||||||
"question" => 'This is the question',
|
"question" => 'This is the question',
|
||||||
"option" => ['aaaaa'=>'aaaaaaa', 'bbbbbb'=>'bbbbbbbbb', 'cccccc'=>'cccccccc'],
|
"option" => ['aaaaa'=>'aaaaaaa', 'bbbbbb'=>'bbbbbbbbb', 'cccccc'=>'cccccccc'],
|
||||||
"answer" => 'bbbbbb',
|
"answer" => 'bbbbbb',
|
||||||
"last" => false,
|
"last" => false,
|
||||||
"points" => 10
|
"points" => 10
|
||||||
];
|
];
|
||||||
|
$out = [
|
||||||
|
"next_question" => $next_question
|
||||||
|
];
|
||||||
log_message('critical', "***** ***** WrenchResources::generatives Ret ");
|
log_message('critical', "***** ***** WrenchResources::generatives Ret ");
|
||||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user