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