Browse Source

不重要的提交

lizhen_gitee 10 months ago
parent
commit
f7f67094f3
2 changed files with 16 additions and 13 deletions
  1. 3 2
      application/api/controller/Index.php
  2. 13 11
      application/api/controller/User.php

+ 3 - 2
application/api/controller/Index.php

@@ -1508,6 +1508,7 @@ class Index extends Api
     }
 
     //用户行为feedback
+    //前端没用到,废弃
     public function userfeedback() {
         $type = input('type', '', 'trim'); //曝光display/播放play/点击click/订购order/搜索 search/收藏 fav
         $itemid = input('itemid', '', 'trim'); //视频id,研究院推荐内容上报
@@ -1637,7 +1638,7 @@ class Index extends Api
         $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)
             {
@@ -1646,7 +1647,7 @@ class Index extends Api
         }
         $this->success('生活服务', $list);
     }
-            //退订服务
+    //退订服务
     public function tudingc()
     {
         $data = ['亲爱的用户:','如果您想退订健康e家业务,可以通过以下方式:','1、电视屏 一家庭专区一个人中心-我的订单,点击退订取消订购','2、收到成功订购健康e家业务短信的1小时内,根据短信内容,发送指定数字至10086901,即可取消业务不再收取费用','3、发送0000至10086获取最新的增值业务订购信息,根据短信内容回复“业务序号”取消对应业务','4、就近的营业厅办理增值业务退订','5、拨打10086客服热线进行退订

+ 13 - 11
application/api/controller/User.php

@@ -1118,18 +1118,7 @@ class User extends Api
         $this->success('个人账单明细', $data);
     }
 
-    //关于我们/免责协议/用户协议/隐私政策/段位介绍
-    public function getagreement()
-    {
-        $type = input('type', 0, 'intval');
-        if (!in_array($type, [1, 2, 3, 4, 5, 6, 7, 8, 9])) {
-            $this->error('参数错误');
-        }
-
-        $info = Db::name('platform_info')->field('title, content')->where(['type' => $type])->find();
 
-        $this->success('协议', $info);
-    }
 
     //获取openid
     public function getopenid() {
@@ -2129,4 +2118,17 @@ class User extends Api
 
         $this->success('信息', $data);
     }
+
+    //关于我们/免责协议/用户协议/隐私政策/段位介绍
+    public function getagreement()
+    {
+        $type = input('type', 0, 'intval');
+        if (!in_array($type, [1, 2, 3, 4, 5, 6, 7, 8, 9])) {
+            $this->error('参数错误');
+        }
+
+        $info = Db::name('platform_info')->field('title, content')->where(['type' => $type])->find();
+
+        $this->success('协议', $info);
+    }
 }