Commit 6b4ea99b by haojie

1

parent fccdf420
......@@ -151,10 +151,9 @@ public function prompt_callback($data = [])
function img_download_callback($data = [])
{
$credentials = Arr::only($data, ['prompt_id', 'result_img', 'message']);
Log::info(json_encode($credentials));
# 必须字段
$prompt_id = $credentials['prompt_id'];
$message = $credentials['message'];
$prompt_id = $credentials['prompt_id'] ?? '';
$message = $credentials['message'] ?? '';
$result_img = $credentials['result_img'] ?? '';
# 判断必须字段
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