上线前新需求:加客服接口 公会退出 费用发给公会长

This commit is contained in:
2026-01-14 17:25:37 +08:00
parent 06983dfe46
commit 767f51d1d6
3 changed files with 18 additions and 3 deletions

View File

@@ -437,6 +437,10 @@ class Guild extends Model
//减少公会人数
db::name('vs_guild')->where('id', $guild_info['id'])->setDec('num');
model('api/Tencent')->delete_group_member('g'.$guild_id, $uid);
//付费退出费用给公会长
$res = model('common/UserWallet')->change_user_money($guild_info['user_id'], $quit_guild_gold, model('common/UserWallet')::MONEYTYPECOIN, model('common/UserWallet')::GUILD_EXIT_DEACON_INCOME,model('common/UserWallet')::ChangeTypeLable(model('common/UserWallet')::GUILD_EXIT_DEACON_INCOME));
Db::commit();
return ['code' => 1, 'msg' => '退出成功', 'data' => null];
}else{