|
@@ -180,7 +180,7 @@ class Guild extends Api
|
|
|
$partyInfo["type_name"] = $partyTypeName;
|
|
|
}
|
|
|
|
|
|
- //获取家族角色
|
|
|
+ //获取公会角色
|
|
|
$userService = new UserService();
|
|
|
$userParams = [
|
|
|
'user_id' => $user_id,
|
|
@@ -196,8 +196,8 @@ class Guild extends Api
|
|
|
$res["guildMemberCount"] = $guildMemberCount; // 成员总数
|
|
|
$res["guilderInfo"] = $guilderInfo; // 会长
|
|
|
$res["is_member"] = $is_member; // 是否为派对成员
|
|
|
- $res['guild_status'] = $guildStatus; //家族状态
|
|
|
- $res['guild_role'] = $guildStatus; //家族角色:1组长,2副族长,3成员,4非成员
|
|
|
+ $res['guild_status'] = $guildStatus; //公会状态
|
|
|
+ $res['guild_role'] = $guildStatus; //公会角色:1工会长,2副会长,3成员,4非成员
|
|
|
$this->success("获取成功!",$res);
|
|
|
}
|
|
|
|
|
@@ -228,7 +228,7 @@ class Guild extends Api
|
|
|
$guildWhere['status'] = ['in',[0,1]];
|
|
|
$guildData = model('Guild')->where($guildWhere)->find();
|
|
|
if (!empty($guildData)) {
|
|
|
- throw new Exception('您已创建过家族!');
|
|
|
+ throw new Exception('您已创建过公会!');
|
|
|
}
|
|
|
|
|
|
//准备创建
|
|
@@ -277,7 +277,7 @@ class Guild extends Api
|
|
|
if (!empty($user) && $user['guild_id'] != $guildInfo->id) {
|
|
|
$userRes = model('User')->where($userWhere)->update(['is_guild'=>3,'guild_id'=>$guildInfo->id]);
|
|
|
if (!$userRes) {
|
|
|
- throw new Exception('用户绑定家族失败');
|
|
|
+ throw new Exception('用户绑定公会失败');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -369,11 +369,11 @@ class Guild extends Api
|
|
|
// 获取公会信息
|
|
|
$guildInfo = \app\common\model\Guild::where(["id"=>$joininInfo->guild_id])->find();
|
|
|
// 验证更新条件
|
|
|
- if($user_id !== $guildInfo->user_id) $this->error("身份验证失败!您不是族长,无权限更改!");
|
|
|
+ if($user_id !== $guildInfo->user_id) $this->error("身份验证失败!您不是公会长,无权限更改!");
|
|
|
|
|
|
//判断重复
|
|
|
$memberfind = \app\common\model\GuildMember::where(["user_id"=>$joininInfo['user_id']])->find();
|
|
|
- if($memberfind) $this->error("该用户已有家族!");
|
|
|
+ if($memberfind) $this->error("该用户已有公会!");
|
|
|
|
|
|
//清理其他公会未审核的数据
|
|
|
if ($is_pass == 1) {
|
|
@@ -709,7 +709,7 @@ class Guild extends Api
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 家族贡献榜排行
|
|
|
+ * 公会贡献榜排行
|
|
|
* @return void
|
|
|
*/
|
|
|
public function getRankList()
|
|
@@ -774,7 +774,7 @@ class Guild extends Api
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取家族状态
|
|
|
+ * 获取公会状态
|
|
|
* @return void
|
|
|
*/
|
|
|
public function getStatus()
|