上线前新需求:加客服接口 公会退出 费用发给公会长
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user