Commit 307a8394 by haojie

1

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