Commit 307a8394 by haojie

1

parent 3f722d3a
...@@ -200,14 +200,11 @@ public function getStableTask(array $data = []) ...@@ -200,14 +200,11 @@ public function getStableTask(array $data = [])
public function stableCallback(array $data = []) public function stableCallback(array $data = [])
{ {
# 必须字段 # 必须字段
$credentials = Arr::only($data, ['task_id', 'result_img', 'message', 'prompt_id', 'status']); $task_id = $data['task_id'] ?? '';
Log::info(json_encode($credentials)); $prompt_id = $data['prompt_id'] ?? '';
$user_id = $credentials['user_id'] ?? ''; $result_img = $data['result_img'] ?? '';
$task_id = $credentials['task_id'] ?? ''; $message = $data['message'] ?? '';
$prompt_id = $credentials['prompt_id'] ?? ''; $status = $data['status'] ?? '';
$result_img = $credentials['result_img'] ?? '';
$message = $credentials['message'] ?? '';
$status = $credentials['status'] ?? '';
if (empty($task_id) || empty($prompt_id)) { if (empty($task_id) || empty($prompt_id)) {
throw new UserException('缺少字段'); throw new UserException('缺少字段');
} }
......
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