|
|
|
@ -195,6 +195,11 @@ Class FrontApiController extends SiteController {
@@ -195,6 +195,11 @@ Class FrontApiController extends SiteController {
|
|
|
|
|
|
|
|
|
|
//提交视频抓取任务到HeroUnion英雄联盟 |
|
|
|
|
protected function addHeroUnionTask($shareUrl, $platform) { |
|
|
|
|
$notify_prefix = ''; |
|
|
|
|
if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['user_id'])) { |
|
|
|
|
$notify_prefix = '/' . FSC::$app['user_id']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$heroUnionConfig = FSC::$app['config']['heroUnion']; |
|
|
|
|
$params = array( |
|
|
|
|
'uuid' => $heroUnionConfig['uuid'], |
|
|
|
@ -204,7 +209,7 @@ Class FrontApiController extends SiteController {
@@ -204,7 +209,7 @@ Class FrontApiController extends SiteController {
|
|
|
|
|
'data_mode' => $heroUnionConfig['data_mode'], |
|
|
|
|
'country' => $heroUnionConfig['country'], |
|
|
|
|
'lang' => $heroUnionConfig['lang'], |
|
|
|
|
'notify_url' => $heroUnionConfig['notify_url'], |
|
|
|
|
'notify_url' => $heroUnionConfig['notify_domain'] . $notify_prefix . '/frontapi/hunotify/', |
|
|
|
|
); |
|
|
|
|
$params['sign'] = $this->sign($params, $heroUnionConfig['token']); |
|
|
|
|
|
|
|
|
|