|
@@ -642,11 +642,11 @@ class Party extends Common
|
|
|
if (!$party_id) {
|
|
|
$this->error(__('Invalid parameters'));
|
|
|
}
|
|
|
- $user_u_id = $this->auth->u_id;
|
|
|
+ $user_username = $this->auth->username;
|
|
|
$redis = new Redis();
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
- $redis->zRem("party_user_".$party_id,$user_u_id);
|
|
|
+ $redis->zRem("party_user_".$party_id,$user_username);
|
|
|
|
|
|
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
@@ -684,16 +684,9 @@ class Party extends Common
|
|
|
* 派对内搜索用户
|
|
|
*/
|
|
|
public function searchUserParty() {
|
|
|
- $username = $this->request->request('username',0,"intval");
|
|
|
+ $username = $this->request->request('username',0,"intval");
|
|
|
$party_id = $this->request->request('party_id',0,"intval");
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
$userModel = new \app\common\model\User();
|
|
|
$where = [];
|