|
@@ -1098,12 +1098,24 @@ class Notify extends Api
|
|
|
foreach ($list as $key => &$param) {
|
|
|
$content = [
|
|
|
'Updatetype' => 1,
|
|
|
- 'cpid' => config('cp_id'),
|
|
|
+ 'cpid' => config('data_cp_id'),
|
|
|
'channelid' => '1000035',
|
|
|
'albumid' => $param['id'],
|
|
|
'albumname' => $param['title'],
|
|
|
+ 'albumnum' => 1,
|
|
|
+ 'tag' => '',
|
|
|
+ 'onlinetime' => '',
|
|
|
+ 'bref' => '',
|
|
|
+ 'onebref' => '',
|
|
|
'cornersign' => $param['is_pay'],
|
|
|
+ 'director' => '',
|
|
|
+ 'actor' => '',
|
|
|
+ 'year' => '',
|
|
|
+ 'area' => '',
|
|
|
+ 'language' => '',
|
|
|
+ 'score' => '',
|
|
|
'picurl' => config('upload.cdnurl') . $param['image'],
|
|
|
+ 'picurl_v' => '',
|
|
|
'gotourl' => json_encode([
|
|
|
'action' => 'com.huxiu.heh.tv.ui.splash.SplashActivity',
|
|
|
'package' => 'com.huxiu.heh.tv',
|
|
@@ -1118,21 +1130,25 @@ class Notify extends Api
|
|
|
'type_id' => $param['video_type_id'],
|
|
|
'id' => $param['id']
|
|
|
]
|
|
|
- ], 320)
|
|
|
+ ], 320),
|
|
|
+ 'is_politics' => '',
|
|
|
+ 'second_type' => ''
|
|
|
];
|
|
|
|
|
|
- $content = json_encode($content, 320);
|
|
|
- $filename = date('Ymd').'_'.config('cp_id').'_albumsdata_1.dat';
|
|
|
- $check_filename = date('Ymd').'_'.config('cp_id').'_albumsdata_1.chk';
|
|
|
+ $content = join(json_decode('"\u0001"', true), $content);
|
|
|
+ $filename = date('Ymd').'_'.config('data_cp_id').'_albumsdata_1.dat';
|
|
|
+ $check_filename = date('Ymd').'_'.config('data_cp_id').'_albumsdata_1.chk';
|
|
|
|
|
|
- error_log(print_r($content, 1) . PHP_EOL, 3, './jiankang/' . $filename);
|
|
|
- error_log('', 3, './jiankang/' . $check_filename);
|
|
|
+ error_log(print_r($content, 1) . PHP_EOL, 3, './dashuju/' . $filename);
|
|
|
+ error_log('', 3, './dashuju/' . $check_filename);
|
|
|
|
|
|
if ($key == count($list) - 1) {
|
|
|
- $finish_filename = date('Ymd') . '_' . config('cp_id') . '_albumsdata.finish';
|
|
|
- error_log('', 3, './jiankang/' . $finish_filename);
|
|
|
+ $finish_filename = date('Ymd') . '_' . config('data_cp_id') . '_albumsdata.finish';
|
|
|
+ error_log('', 3, './dashuju/' . $finish_filename);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ echo 'wan bi';
|
|
|
}
|
|
|
|
|
|
//媒资数据节目/内容粒度
|
|
@@ -1148,26 +1164,28 @@ class Notify extends Api
|
|
|
foreach ($list as $key => &$param) {
|
|
|
$content = [
|
|
|
'Updatetype' => 1,
|
|
|
- 'cpid' => config('cp_id'),
|
|
|
+ 'cpid' => config('data_cp_id'),
|
|
|
'channelid' => '1000035',
|
|
|
'albumid' => $param['id'],
|
|
|
'albumname' => $param['title'],
|
|
|
'videoid' => $param['id'],
|
|
|
'videoname' => $param['title'],
|
|
|
+ 'videonum' => 1,
|
|
|
'Contenttype' => 1,
|
|
|
- 'cornersign' => $param['is_pay']
|
|
|
+ 'duration' => '',
|
|
|
+ 'quality' => ''
|
|
|
];
|
|
|
|
|
|
- $content = json_encode($content, 320);
|
|
|
- $filename = date('Ymd').'_'.config('cp_id').'_videosdata_1.dat';
|
|
|
- $check_filename = date('Ymd').'_'.config('cp_id').'_videosdata_1.chk';
|
|
|
+ $content = join(json_decode('"\u0001"', true), $content);
|
|
|
+ $filename = date('Ymd').'_'.config('data_cp_id').'_videosdata_1.dat';
|
|
|
+ $check_filename = date('Ymd').'_'.config('data_cp_id').'_videosdata_1.chk';
|
|
|
|
|
|
- error_log(print_r($content, 1) . PHP_EOL, 3, './jiankang/' . $filename);
|
|
|
- error_log('', 3, './jiankang/' . $check_filename);
|
|
|
+ error_log(print_r($content, 1) . PHP_EOL, 3, './dashuju/' . $filename);
|
|
|
+ error_log('', 3, './dashuju/' . $check_filename);
|
|
|
|
|
|
if ($key == count($list) - 1) {
|
|
|
- $finish_filename = date('Ymd') . '_' . config('cp_id') . '_videosdata.finish';
|
|
|
- error_log('', 3, './jiankang/' . $finish_filename);
|
|
|
+ $finish_filename = date('Ymd') . '_' . config('data_cp_id') . '_videosdata.finish';
|
|
|
+ error_log('', 3, './dashuju/' . $finish_filename);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1178,17 +1196,17 @@ class Notify extends Api
|
|
|
'prod_code' => config('product_code'),
|
|
|
'prod_name' => '月包会员',
|
|
|
'prod_type' => 0,
|
|
|
- 'cpid' => config('cp_id')
|
|
|
+ 'cpid' => config('data_cp_id')
|
|
|
];
|
|
|
|
|
|
- $content = json_encode($content, 320);
|
|
|
- $filename = date('Ymd').'_'.config('cp_id').'_productsdata_1.dat';
|
|
|
- $check_filename = date('Ymd').'_'.config('cp_id').'_productsdata_1.chk';
|
|
|
+ $content = join(json_decode('"\u0001"', true), $content);
|
|
|
+ $filename = date('Ymd').'_'.config('data_cp_id').'_productsdata_1.dat';
|
|
|
+ $check_filename = date('Ymd').'_'.config('data_cp_id').'_productsdata_1.chk';
|
|
|
|
|
|
- error_log(print_r($content, 1) . PHP_EOL, 3, './jiankang/' . $filename);
|
|
|
- error_log('', 3, './jiankang/' . $check_filename);
|
|
|
- $finish_filename = date('Ymd') . '_' . config('cp_id') . '_productsdata.finish';
|
|
|
- error_log('', 3, './jiankang/' . $finish_filename);
|
|
|
+ error_log(print_r($content, 1) . PHP_EOL, 3, './dashuju/' . $filename);
|
|
|
+ error_log('', 3, './dashuju/' . $check_filename);
|
|
|
+ $finish_filename = date('Ymd') . '_' . config('data_cp_id') . '_productsdata.finish';
|
|
|
+ error_log('', 3, './dashuju/' . $finish_filename);
|
|
|
}
|
|
|
|
|
|
//产品包和媒资所属关系
|
|
@@ -1205,20 +1223,20 @@ class Notify extends Api
|
|
|
$content = [
|
|
|
'Updatetype' => 1,
|
|
|
'prod_code' => config('product_code'),
|
|
|
- 'cpid' => config('cp_id'),
|
|
|
+ 'cpid' => config('data_cp_id'),
|
|
|
'albumid' => $param['id']
|
|
|
];
|
|
|
|
|
|
- $content = json_encode($content, 320);
|
|
|
- $filename = date('Ymd').'_'.config('cp_id').'_productalbumdata_1.dat';
|
|
|
- $check_filename = date('Ymd').'_'.config('cp_id').'_productalbumdata_1.chk';
|
|
|
+ $content = join(json_decode('"\u0001"', true), $content);
|
|
|
+ $filename = date('Ymd').'_'.config('data_cp_id').'_productalbumdata_1.dat';
|
|
|
+ $check_filename = date('Ymd').'_'.config('data_cp_id').'_productalbumdata_1.chk';
|
|
|
|
|
|
- error_log(print_r($content, 1) . PHP_EOL, 3, './jiankang/' . $filename);
|
|
|
- error_log('', 3, './jiankang/' . $check_filename);
|
|
|
+ error_log(print_r($content, 1) . PHP_EOL, 3, './dashuju/' . $filename);
|
|
|
+ error_log('', 3, './dashuju/' . $check_filename);
|
|
|
|
|
|
if ($key == count($list) - 1) {
|
|
|
- $finish_filename = date('Ymd') . '_' . config('cp_id') . '_productalbumdata.finish';
|
|
|
- error_log('', 3, './jiankang/' . $finish_filename);
|
|
|
+ $finish_filename = date('Ymd') . '_' . config('data_cp_id') . '_productalbumdata.finish';
|
|
|
+ error_log('', 3, './dashuju/' . $finish_filename);
|
|
|
}
|
|
|
}
|
|
|
}
|