修改工会活动Bug
This commit is contained in:
parent
c63ba8e2d0
commit
307392caa5
@ -103,12 +103,12 @@ class RankActivityService extends BaseService {
|
||||
break;
|
||||
case self::GUILD_TYPE :
|
||||
{
|
||||
if ($userDb['guild_id']){
|
||||
// if ($userDb['guild_id']){
|
||||
$this->internalUpdateRankActivityNew(
|
||||
$currentRankingMeta,
|
||||
$gold,
|
||||
$userDb);
|
||||
}
|
||||
// }
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -127,6 +127,34 @@ class RankActivityService extends BaseService {
|
||||
if (!$meta){
|
||||
return;
|
||||
}
|
||||
if($meta['themeType'] == self::GUILD_TYPE){
|
||||
if (!$user['guild_id']){
|
||||
$row = SqlHelper::ormSelectOne
|
||||
(myself()->_getSelfMysql(),
|
||||
't_rank_activity',
|
||||
array(
|
||||
'account_id' => myself()->_getAccountId(),
|
||||
'wave' => $meta['wave'],
|
||||
'type' => $meta['themeType'],
|
||||
)
|
||||
);
|
||||
if ($row){
|
||||
SqlHelper::update
|
||||
(myself()->_getSelfMysql(),
|
||||
't_rank_activity',
|
||||
array(
|
||||
'account_id' => myself()->_getAccountId(),
|
||||
'wave' => $meta['wave'],
|
||||
'type' => $meta['themeType'],
|
||||
),
|
||||
array(
|
||||
'guild_id'=> ''
|
||||
)
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
SqlHelper::upsert
|
||||
(myself()->_getSelfMysql(),
|
||||
't_rank_activity',
|
||||
|
Loading…
x
Reference in New Issue
Block a user