|
@@ -165,7 +165,7 @@ class AiController extends Controller
|
|
/**
|
|
/**
|
|
* 生成故事.
|
|
* 生成故事.
|
|
*/
|
|
*/
|
|
- public function buildStory(Request $request): \Illuminate\Http\JsonResponse
|
|
|
|
|
|
+ public function buildStory(): \Illuminate\Http\JsonResponse
|
|
{
|
|
{
|
|
try {
|
|
try {
|
|
$task = TaskList::query()->with('role')->where('state', 0)->inRandomOrder()->first();
|
|
$task = TaskList::query()->with('role')->where('state', 0)->inRandomOrder()->first();
|
|
@@ -259,7 +259,7 @@ class AiController extends Controller
|
|
*
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
*/
|
|
- public function buildTitle(Request $request)
|
|
|
|
|
|
+ public function buildTitle()
|
|
{
|
|
{
|
|
try {
|
|
try {
|
|
$task = TaskList::query()->with('role')->where('state', 1)->inRandomOrder()->first();
|
|
$task = TaskList::query()->with('role')->where('state', 1)->inRandomOrder()->first();
|
|
@@ -292,7 +292,7 @@ class AiController extends Controller
|
|
*
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
*/
|
|
- public function buildKeyword(Request $request)
|
|
|
|
|
|
+ public function buildKeyword()
|
|
{
|
|
{
|
|
try {
|
|
try {
|
|
$task = TaskList::query()->with('role')->where('state', 2)->inRandomOrder()->first();
|
|
$task = TaskList::query()->with('role')->where('state', 2)->inRandomOrder()->first();
|
|
@@ -344,7 +344,7 @@ class AiController extends Controller
|
|
*
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
*/
|
|
- public function buildSd(Request $request)
|
|
|
|
|
|
+ public function buildSd()
|
|
{
|
|
{
|
|
try {
|
|
try {
|
|
$task = TaskList::query()->with('role')->where('state', 3)->inRandomOrder()->first();
|
|
$task = TaskList::query()->with('role')->where('state', 3)->inRandomOrder()->first();
|
|
@@ -392,7 +392,7 @@ class AiController extends Controller
|
|
*
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
*/
|
|
- public function getOpensdDetail(Request $request)
|
|
|
|
|
|
+ public function getOpensdDetail()
|
|
{
|
|
{
|
|
$task = TaskList::query()->where('state', 4)->inRandomOrder()->first();
|
|
$task = TaskList::query()->where('state', 4)->inRandomOrder()->first();
|
|
if (!$task) {
|
|
if (!$task) {
|
|
@@ -423,7 +423,7 @@ class AiController extends Controller
|
|
*
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
*/
|
|
- public function buildPinyin(Request $request)
|
|
|
|
|
|
+ public function buildPinyin()
|
|
{
|
|
{
|
|
try {
|
|
try {
|
|
$task = TaskList::query()->where('state', 5)->inRandomOrder()->first();
|
|
$task = TaskList::query()->where('state', 5)->inRandomOrder()->first();
|