Browse Source

亲密度攻略

lizhen_gitee 11 months ago
parent
commit
ed5084a893
2 changed files with 4 additions and 0 deletions
  1. 1 0
      application/api/controller/Match.php
  2. 3 0
      application/index/controller/Index.php

+ 1 - 0
application/api/controller/Match.php

@@ -649,6 +649,7 @@ class Match extends Api
         $data['other_avatar'] = localpath_to_netpath($other_user['avatar']);
         $data['other_nickname'] = $other_user['nickname'];
 
+        $data['intimacy_rule'] = config('site.intimacy_rule');
 
 
         $this->success('亲密度等级信息', $data);

+ 3 - 0
application/index/controller/Index.php

@@ -51,6 +51,9 @@ class Index extends Frontend
             exit;
         }
         $content = Db::name('basedata')->where('key',$key)->find();
+        if(empty($content)){
+            exit;
+        }
         $this->assign('content',$content['content']);
         return $this->fetch();
     }