1
This commit is contained in:
parent
a2050e15a5
commit
3b08cae12e
@ -578,8 +578,9 @@ EOD;
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function reward()
|
public function punish()
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
$gameDbConn = myself()->_getMysql('');
|
$gameDbConn = myself()->_getMysql('');
|
||||||
$rows = SqlHelper::ormSelect(
|
$rows = SqlHelper::ormSelect(
|
||||||
$gameDbConn,
|
$gameDbConn,
|
||||||
@ -642,4 +643,40 @@ EOD;
|
|||||||
return empty($row) ? 0 : $row['gold'];
|
return empty($row) ? 0 : $row['gold'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function reward()
|
||||||
|
{
|
||||||
|
$gameDbConn = myself()->_getMysql('');
|
||||||
|
$rows = SqlHelper::ormSelect(
|
||||||
|
$gameDbConn,
|
||||||
|
't_test_reward070901',
|
||||||
|
array(
|
||||||
|
)
|
||||||
|
);
|
||||||
|
foreach ($rows as $row) {
|
||||||
|
if ($row['pre_send'] == 0) {
|
||||||
|
SqlHelper::update(
|
||||||
|
$gameDbConn,
|
||||||
|
't_test_reward070901',
|
||||||
|
array(
|
||||||
|
'account_id' => $row['account_id'],
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'pre_send' => 1
|
||||||
|
)
|
||||||
|
);
|
||||||
|
SqlHelper::update(
|
||||||
|
$gameDbConn,
|
||||||
|
't_test_reward070901',
|
||||||
|
array(
|
||||||
|
'account_id' => $row['account_id'],
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'post_send' => 1
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo 'ok';
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user