Quellcode durchsuchen

修改测试反馈

lizhen_gitee vor 1 Monat
Ursprung
Commit
e2fbe4f9df

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

@@ -51,7 +51,7 @@ class Exchange extends Api
     //兑换金币
     public function exchangegold() {
         $id        = input('id', 0, 'intval');
-        $freemoney = input_post('freemoney', 0, 'intval'); //自定义
+        $freemoney = input_post('free_money', 0, 'intval'); //自定义
         $uid = $this->auth->id;
 
         if(!$id && !$freemoney){

+ 8 - 8
application/api/controller/Topicdongtai.php

@@ -267,10 +267,10 @@ class Topicdongtai extends Api
             ->field('dt.*,user.nickname,user.avatar,user.gender,user.birthday,user.idcard_status,user.real_status,user.is_hideaddress,th.name,uw.vip_endtime,uw.vip_level,ur.nickname_remark')
             ->where('dt.id',$id)->find();
         if (!$info) {
-            $this->error('您的网络开小差啦~');
+            $this->error('没有找到该动态,或许它被删除了');
         }
         if ($info['status'] != 0) {
-            $this->error('您的网络开小差啦~');
+            $this->error('没有找到该动态,或许它被删除了');
         }
 
         $info = info_domain_image($info,['images','avatar']);
@@ -317,10 +317,10 @@ class Topicdongtai extends Api
         }
         $info = Db::name('topic_dongtai')->find($id);
         if (!$info) {
-            $this->error('您的网络开小差啦~');
+            $this->error('没有找到该动态,或许它被删除了');
         }
         if ($info['status'] != 0) {
-            $this->error('您的网络开小差啦~');
+            $this->error('没有找到该动态,或许它被删除了');
         }
 
         $where = [
@@ -693,10 +693,10 @@ class Topicdongtai extends Api
         //查询动态
         $dongtai_info = Db::name('topic_dongtai')->find($dt_id);
         if (!$dongtai_info) {
-            $this->error('您的网络开小差啦~');
+            $this->error('没有找到该动态,或许它被删除了');
         }
         if ($dongtai_info['status'] != 0) {
-            $this->error('您的网络开小差啦~');
+            $this->error('没有找到该动态,或许它被删除了');
         }
         $user_id =  $dongtai_info['user_id'];
 
@@ -837,7 +837,7 @@ class Topicdongtai extends Api
         }
         $info = Db::name('topic_dongtai')->find($id);
         if (!$info) {
-            $this->error('您的网络开小差啦~');
+            $this->error('没有找到该动态,或许它被删除了');
         }
         if ($info['user_id'] != $this->auth->id) {
             $this->error('您的网络开小差啦~');
@@ -857,7 +857,7 @@ class Topicdongtai extends Api
 
         $check = Db::name('topic_dongtai')->where('id',$dt_id)->find();
         if(empty($check)){
-            $this->error('不存在的动态');
+            $this->error('没有找到该动态,或许它被删除了');
         }
 
         $data['dt_id'] = $dt_id;

+ 2 - 2
application/api/controller/Userauth.php

@@ -24,7 +24,7 @@ class Userauth extends Api
     // 无需登录的接口,*表示全部
     protected $noNeedLogin = ['test', 'test1'];
     // 无需鉴权的接口,*表示全部
-    protected $noNeedRight = ['test2'];
+    protected $noNeedRight = ['*'];
 
     //实名认证信息
     public function idcard_confirm_info(){
@@ -41,7 +41,7 @@ class Userauth extends Api
     public function idcard_auth() {
         $info = Db::name('user_idconfirm')->where(['user_id' => $this->auth->id])->find();
 
-        if ($info['status'] == 1) {
+        if (!empty($info) && $info['status'] == 1) {
             $this->error('您已通过审核!');
         }
 

+ 1 - 1
new 2.txt

@@ -1,4 +1,4 @@
 男女任务不同
-cos视频缩略工作流
+
 ////////////////////////////////
 活动页,两个统计数据