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