重构clientBattleReport
This commit is contained in:
parent
0f75774543
commit
507b84c7ce
@ -153,20 +153,11 @@ class RoleController extends BaseAuthedController {
|
||||
|
||||
public function clientBattleReport()
|
||||
{
|
||||
$account_id = $_REQUEST['account_id']; //账号
|
||||
$conn = $this->getMysql($account_id);
|
||||
phpcommon\SqlHelper::update
|
||||
($conn,
|
||||
'user',
|
||||
array(
|
||||
'accountid' => $account_id,
|
||||
),
|
||||
array(
|
||||
'first_fight' => function () {
|
||||
return '1';
|
||||
}
|
||||
)
|
||||
);
|
||||
$this->updateUserInfo(array(
|
||||
'first_fight' => function () {
|
||||
return '1';
|
||||
}
|
||||
));
|
||||
$this->rspOk();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user