|
@@ -14,7 +14,7 @@ use Qcloud\Cos\Exception\ServiceResponseException;
|
|
|
*/
|
|
|
class Index extends Api
|
|
|
{
|
|
|
- protected $noNeedLogin = ['banner', 'activelist', 'personaltype', 'personalactivetype', 'car', 'leader', 'personaldirection', 'activeinfo', 'position', 'gamelist', 'special_models', 'app_error'];
|
|
|
+ protected $noNeedLogin = ['banner', 'activelist', 'personaltype', 'personalactivetype', 'car', 'leader', 'personaldirection', 'activeinfo', 'position', 'gamelist', 'special_models', 'app_error','indexdata','tudingc'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
/**
|
|
@@ -1257,10 +1257,12 @@ class Index extends Api
|
|
|
if ($info['inject_status'] != 2) {
|
|
|
$this->error('视频丢失');
|
|
|
}
|
|
|
+
|
|
|
$info['neirong']='内容如有侵权,请联系删除';
|
|
|
$info['neirong1']='为您推荐';
|
|
|
$info['image'] = one_domain_image($info['image']);
|
|
|
$info['is_collection'] = Db::name('video_collection')->where(['user_id' => $this->auth->id, 'video_id' => $id])->count('id');
|
|
|
+
|
|
|
$this->success('详情', $info);
|
|
|
}
|
|
|
|
|
@@ -1301,7 +1303,7 @@ class Index extends Api
|
|
|
|
|
|
$info['image'] = one_domain_image($info['image']);
|
|
|
|
|
|
- $url = 'http://jscp.agency.gitv.tv/OTT/jscmcc/addThirdPartyHistoryRecord';
|
|
|
+ $url = 'http://meta-history.unso.gitv.tv/OTT/jscmcc/addThirdPartyHistoryRecord';
|
|
|
$content = [
|
|
|
'cpPrvdName' => '健康e家',
|
|
|
'cpPrvCode' => '41000144',
|
|
@@ -1309,7 +1311,7 @@ class Index extends Api
|
|
|
'contentName' => $info['title'],
|
|
|
'ChnName' => '健康',
|
|
|
'ChnCode' => '1000020',
|
|
|
- 'contentId' => (string)$info['id'],
|
|
|
+ 'contentId' => (string)$info['movieid'],
|
|
|
'extraContentID' => '',
|
|
|
'isEffective' => $info['status'],
|
|
|
'isPaid' => $info['is_pay'],
|
|
@@ -1341,7 +1343,7 @@ class Index extends Api
|
|
|
$content = json_encode($content, 320);
|
|
|
|
|
|
$rt = httpRequest($url, 'POST', $content);
|
|
|
-
|
|
|
+ file_put_contents('bofang.txt',$id.'_'.$rt.PHP_EOL, FILE_APPEND);
|
|
|
if (!$rt) {
|
|
|
$this->error('同步失败');
|
|
|
}
|
|
@@ -1355,6 +1357,7 @@ class Index extends Api
|
|
|
|
|
|
//视频收藏/取消收藏
|
|
|
public function collectionrecord() {
|
|
|
+
|
|
|
$id = input('id', 0, 'intval');
|
|
|
if (!$id) {
|
|
|
$this->error('您的网络开小差了');
|
|
@@ -1364,7 +1367,7 @@ class Index extends Api
|
|
|
if (!$info) {
|
|
|
$this->error('数据不存在');
|
|
|
}
|
|
|
-
|
|
|
+//var_dump($info);exit;
|
|
|
$info['image'] = one_domain_image($info['image']);
|
|
|
//查询是否收藏
|
|
|
$count = Db::name('video_collection')->where(['user_id' => $this->auth->id, 'video_id' => $id])->count('id');
|
|
@@ -1379,14 +1382,14 @@ class Index extends Api
|
|
|
$this->error('操作失败');
|
|
|
}
|
|
|
|
|
|
- $url = 'http://jscp.agency.gitv.tv/OTT/jscmcc/addThirdPartyCollectionRecord';
|
|
|
+ $url = 'http://meta-history.unso.gitv.tv/OTT/jscmcc/addThirdPartyCollectionRecord';
|
|
|
$content = [
|
|
|
'cpPrvdName' => '健康e家',
|
|
|
'cpPrvCode' => '41000144',
|
|
|
'cpPrvType' => '1006',
|
|
|
'content' => $info['title'],
|
|
|
'ChnCode' => '1000020',
|
|
|
- 'contentId' => (string)$info['id'],
|
|
|
+ 'contentId' => (string)$info['movieid'],
|
|
|
'extraContentID' => '',
|
|
|
'isEffective' => $info['status'],
|
|
|
'isPaid' => $info['is_pay'],
|
|
@@ -1414,7 +1417,7 @@ class Index extends Api
|
|
|
$content = json_encode($content, 320);
|
|
|
|
|
|
$rt = httpRequest($url, 'POST', $content);
|
|
|
- file_put_contents('/bofang.txt', $rt.PHP_EOL, FILE_APPEND);
|
|
|
+ file_put_contents('shoucang.txt',$id.'_'.$rt.PHP_EOL, FILE_APPEND);
|
|
|
if (!$rt) {
|
|
|
Db::rollback();
|
|
|
$this->error('操作失败');
|
|
@@ -1622,32 +1625,33 @@ class Index extends Api
|
|
|
$data['banner8'] = 'https://jiankang-1304634122.cos.ap-nanjing.myqcloud.com/home%2Fcenter3.webp';
|
|
|
$data['banner9'] = 'https://jiankang-1304634122.cos.ap-nanjing.myqcloud.com/home%2Fright3.webp';
|
|
|
$data['rightcontent'] = ['服务电话:13625150009','服务时间:周一至周五8:00-18:00','收视路径:首页-应用中心-健康e家'];
|
|
|
- $data['leftbottom'] = '内容如有雷同,请打右上角电话要求下架';
|
|
|
- $data['beian']['top'] = '232323';
|
|
|
- $data['beian']['bottom'] = '67788';
|
|
|
+ $data['leftbottom'] = '内容如有侵权,请联系删除';
|
|
|
+ $data['beian']['top'] = '';
|
|
|
+ $data['beian']['bottom'] = '';
|
|
|
+ $this->success('', $data);
|
|
|
}
|
|
|
//生活服务
|
|
|
public function life_service() {
|
|
|
$list = Db::name('life_service')->field('id, name, images')->where(['status' => 1])->page($this->page, $this->pagenum)->order('weigh, id')->select();
|
|
|
|
|
|
$list = list_domain_image($list, ['images']);
|
|
|
- if(!empty($list))
|
|
|
+ if(!empty($list))
|
|
|
{
|
|
|
foreach ($list as &$key)
|
|
|
{
|
|
|
$key['bcontent'] = '本信息由"淮安天职天利家政服务有限公司"提供';
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
$this->success('生活服务', $list);
|
|
|
}
|
|
|
- //退订服务
|
|
|
+ //退订服务
|
|
|
public function tudingc()
|
|
|
{
|
|
|
$data = ['亲爱的用户:','如果您想退订健康e家业务,可以通过以下方式:','1、电视屏 一家庭专区一个人中心-我的订单,点击退订取消订购','2、收到成功订购健康e家业务短信的1小时内,根据短信内容,发送指定数字至10086901,即可取消业务不再收取费用','3、发送0000至10086获取最新的增值业务订购信息,根据短信内容回复“业务序号”取消对应业务','4、就近的营业厅办理增值业务退订','5、拨打10086客服热线进行退订
|
|
|
','6、登录中国移动网上营业厅:http://10086.cn 掌上营业厅:wap.10086.cn“已开服务一增值业务”进行退订'];
|
|
|
$this->success('', $data);
|
|
|
}
|
|
|
+
|
|
|
//获取特殊机型
|
|
|
public function special_models() {
|
|
|
$special_models = config('site.special_models');
|