Commit 0b4d2203 by haojie

1

parent e0bf6d38
...@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment