|
|
|
@ -312,12 +312,22 @@ eof;
@@ -312,12 +312,22 @@ eof;
|
|
|
|
|
if (strtolower($mySign) != strtolower($sign)) { |
|
|
|
|
$code = 0; |
|
|
|
|
$err = '签名验证不通过!'; |
|
|
|
|
}else { |
|
|
|
|
|
|
|
|
|
}else if (!empty($task_result['done'])) { //如果任务成功抓取到数据 |
|
|
|
|
$saveUrlRes = $this->saveUrlShortCut($task_id, $task_result['url']); |
|
|
|
|
$saveDescRes = $this->saveDescriptionFiles($task_id, $task_result); |
|
|
|
|
if (!$saveUrlRes) { |
|
|
|
|
$code = 0; |
|
|
|
|
$err = '网址快捷方式文件保存失败!'; |
|
|
|
|
}else if (!$saveDescRes) { |
|
|
|
|
$code = 0; |
|
|
|
|
$err = '标题文件、图片及其描述文件保存失败!'; |
|
|
|
|
}else { |
|
|
|
|
$msg = '视频相关文件保存完成。'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo 'Done'; |
|
|
|
|
return $this->renderJson(compact('code', 'msg', 'err')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|