Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
open_ai_api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
open_ai_api
Commits
0b4d2203
Commit
0b4d2203
authored
Apr 11, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e0bf6d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/Service/TaskService.php
+3
-3
No files found.
app/Service/TaskService.php
View file @
0b4d2203
...
@@ -170,7 +170,6 @@ function img_download_callback($data = [])
...
@@ -170,7 +170,6 @@ function img_download_callback($data = [])
'message'
=>
$old_message
.
','
.
$message
,
'message'
=>
$old_message
.
','
.
$message
,
]);
]);
}
else
if
(
$result_img
)
{
}
else
if
(
$result_img
)
{
Log
::
info
(
'更新图片22'
);
# 更新
# 更新
$task
->
update
([
$task
->
update
([
'result_img'
=>
$result_img
,
'result_img'
=>
$result_img
,
...
@@ -253,8 +252,8 @@ function create_split_img_task($user_id, $data = [])
...
@@ -253,8 +252,8 @@ function create_split_img_task($user_id, $data = [])
public
function
split_callback
(
$data
=
[])
public
function
split_callback
(
$data
=
[])
{
{
$credentials
=
Arr
::
only
(
$data
,
[
'cut_img'
,
'prompt_id'
]);
$credentials
=
Arr
::
only
(
$data
,
[
'cut_img'
,
'prompt_id'
]);
$cut_img
=
$
data
[
'cut_img'
]
??
''
;
$cut_img
=
$
credentials
[
'cut_img'
]
??
''
;
$prompt_id
=
$
data
[
'prompt_id'
]
??
''
;
$prompt_id
=
$
credentials
[
'prompt_id'
]
??
''
;
if
(
empty
(
$prompt_id
)
||
empty
(
$cut_img
))
{
if
(
empty
(
$prompt_id
)
||
empty
(
$cut_img
))
{
throw
new
UserException
(
1
,
'缺少必须字段'
);
throw
new
UserException
(
1
,
'缺少必须字段'
);
}
}
...
@@ -277,6 +276,7 @@ public function split_callback($data = [])
...
@@ -277,6 +276,7 @@ public function split_callback($data = [])
*/
*/
public
function
IntervalSplitImg
(
$data
=
[])
public
function
IntervalSplitImg
(
$data
=
[])
{
{
Log
::
info
(
'我执行了'
);
$credentials
=
Arr
::
only
(
$data
,
[
'prompt_id'
]);
$credentials
=
Arr
::
only
(
$data
,
[
'prompt_id'
]);
$prompt_id
=
$credentials
[
'prompt_id'
]
??
''
;
$prompt_id
=
$credentials
[
'prompt_id'
]
??
''
;
if
(
empty
(
$prompt_id
))
{
if
(
empty
(
$prompt_id
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment