|
@@ -41,7 +41,7 @@ class GuildProc {
|
|
|
/**
|
|
|
* 表名
|
|
|
*/
|
|
|
- const tabGuild = '`tab_guild`';
|
|
|
+ const tabGuild = 'tab_guild';
|
|
|
|
|
|
/**
|
|
|
* 创建公会的冷却时间
|
|
@@ -204,22 +204,22 @@ class GuildProc {
|
|
|
$userGuildInfo->create_coding = now(self::create_codingTime); # 设置冷却时间. Ps, 24小时内不准再创建公会.
|
|
|
}
|
|
|
// Mysql 插入公会记录
|
|
|
- daoInst()->insert(self::tabGuild)
|
|
|
- ->data(array(
|
|
|
- `guildId` => $guildInfo->guildId,
|
|
|
- `name` => $guildName,
|
|
|
- `createts` => $guildInfo->createts,
|
|
|
- `declare` => $declare,
|
|
|
- `membercount` => count($guildInfo->members),
|
|
|
- `chairman_id` => $uid,
|
|
|
- `chairman_name` => $base->name,
|
|
|
- `guild_img` => $guild_img,
|
|
|
- `zoneid` => $zoneid,
|
|
|
- `cupScore` => 0,
|
|
|
- 'level' => 1,
|
|
|
- `enableQuickIn` => $guildInfo->enableQuickIn,
|
|
|
- `condition` => ''
|
|
|
- ))->exec();
|
|
|
+ $data = array(
|
|
|
+ 'guildId' => intval($guildInfo->guildId),
|
|
|
+ 'name' => $guildName,
|
|
|
+ 'createts' => $guildInfo->createts,
|
|
|
+ 'declare' => $declare,
|
|
|
+ 'membercount' => count($guildInfo->members),
|
|
|
+ 'chairman_id' => $uid,
|
|
|
+ 'chairman_name' => $base->name,
|
|
|
+ 'guild_img' => $guild_img,
|
|
|
+ 'zoneid' => $zoneid,
|
|
|
+ 'cupScore' => 0,
|
|
|
+ 'level' => 1,
|
|
|
+ 'enableQuickIn' => $guildInfo->enableQuickIn,
|
|
|
+ 'condition' => ''
|
|
|
+ );
|
|
|
+ daoInst()->insert(self::tabGuild)->data($data)->exec();
|
|
|
|
|
|
self::updateUserGuildInfo($userGuildInfo, $uid, $zoneid); # 回写玩家公会数据
|
|
|
$guildInfo->updateDataFull(MemKey_Guild::getGuildInfo_hash($guildInfo->guildId, $zoneid)); # 保存公会数据
|