Explorar o código

从正式站上拉下来的

lizhen_gitee hai 10 meses
pai
achega
f9e5254dfd

+ 18 - 14
application/api/controller/Index.php

@@ -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');

+ 1 - 1
application/api/controller/Notify.php

@@ -955,7 +955,7 @@ class Notify extends Api
     //订购关系同步地址
     public function ordersync() {
         $data = file_get_contents('php://input');
-
+        file_put_contents('chen_tui.txt', $data, FILE_APPEND);
         if (!$data) {
             $this->error('参数缺失');
         }

+ 28 - 5
application/api/controller/Pay.php

@@ -57,7 +57,7 @@ class Pay extends Api
             'orderNo' => $rechar_order['order_no'],
             'userToken' => $user_token,
             'notifyUrl' => config('img_url') . '/api/pay/notify',
-            'backUrl' => config('back_url'),
+            'backUrl' => 'http://aspire.jshdc.payback',
             'deskCode' => config('desk_code'),
             'products' => [
                 [
@@ -229,6 +229,12 @@ class Pay extends Api
                     'productCount' => 1
                 ],
                 [
+                    'productCode' => '005911cp0002',
+                    'productPrice' => '399',
+                    'productUnit' => '年度会员',
+                    'productCount' => 1
+                ],
+                [
                     'productCode' => '005911cp0138',
                     'productPrice' => '10',
                     'productUnit' => '爱家悦享升档包',
@@ -240,7 +246,6 @@ class Pay extends Api
                     'productUnit' => '爱家悦享升档包(含奇异果)',
                     'productCount' => 1
                 ]
-
             ],
             'diversionCode' => config('product_code')
         ];
@@ -313,7 +318,7 @@ class Pay extends Api
             'orderNo' => $rechar_order['order_no'],
             'userToken' => $user_token,
             'notifyUrl' => config('img_url') . '/api/pay/notify',
-            'backUrl' => config('back_url'),
+            'backUrl' => 'http://aspire.jshdc.payback',
             'deskCode' => config('desk_code'),
             'products' => [
                 [
@@ -388,12 +393,12 @@ class Pay extends Api
                     'productUnit' => '两年折扣',
                     'productCount' => 1
                 ],
-                /*[
+                [
                     'productCode' => '005912cp0034',
                     'productPrice' => '468',
                     'productUnit' => '两年特惠',
                     'productCount' => 1
-                ],*/
+                ],
                 [
                     'productCode' => '005912cp0046',
                     'productPrice' => '49',
@@ -539,6 +544,24 @@ class Pay extends Api
                     'productCount' => 1
                 ],
                 [
+                    'productCode' => '2000061592ZYYW',
+                    'productPrice' => '499',
+                    'productUnit' => '爱家尊享年度会员',
+                    'productCount' => 1
+                ],
+                [
+                    'productCode' => '2000061594ZYYW',
+                    'productPrice' => '998',
+                    'productUnit' => '爱家尊享两年会员',
+                    'productCount' => 1
+                ],
+                [
+                    'productCode' => '2400000683ZYYW',
+                    'productPrice' => '399',
+                    'productUnit' => '爱家畅享年度会员(包年)',
+                    'productCount' => 1
+                ],
+                [
                     'productCode' => '005912cp0299',
                     'productPrice' => '299',
                     'productUnit' => '爱家尊享年度特惠会员',

+ 4 - 3
application/api/controller/User.php

@@ -2006,6 +2006,7 @@ class User extends Api
 
     //手机号登录/注册
     public function mobileloginregister() {
+        
         $user_token = input('user_token', '', 'trim');
         if (!$user_token) {
             $this->error('参数缺失');
@@ -2021,6 +2022,7 @@ class User extends Api
             'Authorization: HDCAUTH appid="' . config('pingtai_appid') . '",token="' . $hdc_token . '"'
         ];
         $user_info = httpRequest($url, 'GET', '', $header);
+        file_put_contents('chen.txt', $user_info, FILE_APPEND);
         $user_info = simplexml_load_string($user_info, 'SimpleXMLElement', LIBXML_NOCDATA);
         $user_info = (array)$user_info;
         if (!$user_info) {
@@ -2064,7 +2066,6 @@ class User extends Api
         }
     }
 
-
     //查询我的信息
     public function getmyinfo()
     {
@@ -2083,7 +2084,7 @@ class User extends Api
         $url = 'http://' . config('pay_ip') . '/HDC/bizauth/phone/auth';
 
         //产品编码集合
-        $product_codes = [config('product_code'), '005912cp0028', '005912cp0004', '0002112cp0030', '005911cp0022', '005912cp0051', '005912cp0052', '005912cp0044', '005912cp0047', '0002112cp0031', '005912cp0035', '005912cp0043', '005912cp0034', '005912cp0046', '005912cp0039', '0002112cp0031T1', '0002112cp0031T9', '0002112cp0031T19', '0002112cp0029', '005912cp0002', '0002112cp0031Z39', '005912cp0040', '005912cp0036', '005912cp0021', '005912cp0012', '005912cp0037', '005911cp0001', '005911cp0005', '005911cp0002', '008888cp0004', '2400000560_YRHY', '005912cp0017', '2000012947_ZY', '005912cp0066', '005912cp0067', '005912cp0094', '005912cp0095', '005912cp0121', '005912cp0122', '2000061907ZYYW', '2000061909ZYYW', '2000061908ZYYW'];
+        $product_codes = [config('product_code'), '005912cp0028', '005912cp0004', '0002112cp0030', '005911cp0022', '005912cp0051', '005912cp0052', '005912cp0044', '005912cp0047', '0002112cp0031', '005912cp0035', '005912cp0043', '005912cp0034', '005912cp0046', '005912cp0039', '0002112cp0031T1', '0002112cp0031T9', '0002112cp0031T19', '0002112cp0029', '005912cp0002', '0002112cp0031Z39', '005912cp0040', '005912cp0036', '005912cp0021', '005912cp0012', '005912cp0037', '005911cp0001', '005911cp0005', '005911cp0002', '008888cp0004', '2400000560_YRHY', '005912cp0017', '2000012947_ZY', '005912cp0066', '005912cp0067', '005912cp0094', '005912cp0095', '005912cp0121', '005912cp0122', '2000061907ZYYW', '2000061909ZYYW', '2000061908ZYYW','005911cp0138','005911cp0139'];
 
         $product_codes_count = count($product_codes);
         $i_max = ceil($product_codes_count / 6);
@@ -2106,7 +2107,7 @@ class User extends Api
                 'Authorization: HDCAUTH appid="' . config('pay_appid') . '",token="' . $hdc_token . '"'
             ];
             $rs = httpRequest($url, 'POST', $post_data, $header);
-
+           // file_put_contents('chen.txt', $user_info, FILE_APPEND);
             if ($rs) {
                 $rs = json_decode($rs, true);
                 if ($rs['code'] == '00') {