stanley-king 6 anni fa
parent
commit
3d9c27a27d
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      helper/room/face_room.php
  2. 1 1
      mobile/control/member_talk.php

+ 2 - 2
helper/room/face_room.php

@@ -90,7 +90,7 @@ class face_room
     }
     public function join($user)
     {
-        if($this->find() === false) return false;
+        if($this->find($user) === false) return false;
         if($this->mFaceItem->hasroom()) {
             return $this->mFaceItem->room_id();
         }
@@ -110,7 +110,7 @@ class face_room
 
     public function leave($user)
     {
-        if($this->find() === false) return false;
+        if($this->find($user) === false) return false;
         if($this->mFaceItem->hasroom()) {
             return true;
         }

+ 1 - 1
mobile/control/member_talk.php

@@ -285,7 +285,7 @@ class member_talkControl extends mbMemberControl
 
         $geo = new geohash();
         $hash = $geo->encode($loc['lat'],$loc['lng']);
-        $hash = substr($hash, 0, 8);
+        $hash = substr($hash, 0, 7);
         Log::record("loc={$_GET['coordinate']},code = {$code} hash={$hash}",Log::DEBUG);
 
         return ['code' => $code,'lochash' => $hash];