1
This commit is contained in:
parent
dcef9da0bc
commit
87b36dd855
11
doc/Role.py
11
doc/Role.py
@ -178,17 +178,6 @@ class Role(object):
|
||||
], '数据']
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': '点赞(该接口貌似没用)addGiveMeFive',
|
||||
'group': 'NPlayerInfo',
|
||||
'url': 'webapp/index.php?c=NPlayerInfo&a=addGiveMeFive',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'getPlayerInfo',
|
||||
'group': 'NPlayerInfo',
|
||||
|
@ -579,33 +579,8 @@ class RoleController extends BaseAuthedController {
|
||||
$this->sendDataToClient(3, "ok", $userInfo);
|
||||
}
|
||||
|
||||
public function addGiveMeFive()
|
||||
{
|
||||
phpcommon\SqlHelper::upsert
|
||||
($this->getSelfMysql(),
|
||||
'player_info',
|
||||
array(
|
||||
'accountid' => $this->getAccountId()
|
||||
),
|
||||
array(
|
||||
'give_me_five' => function () {
|
||||
return 'give_me_five + 1';
|
||||
},
|
||||
'modifytime' => $this->getNowTime()
|
||||
),
|
||||
array(
|
||||
'accountid' => $this->getAccountId(),
|
||||
'give_me_five' => 1,
|
||||
'createtime' => $this->getNowTime(),
|
||||
'modifytime' => $this->getNowTime()
|
||||
)
|
||||
);
|
||||
$this->sendDataToClient(100,"getGiveMeFiveTest",null);
|
||||
}
|
||||
|
||||
public function getPlayerInfo()
|
||||
{
|
||||
|
||||
$account_id = $_REQUEST['acctID'];
|
||||
$conn = $this->getMysql($account_id);
|
||||
$from = $_REQUEST['from'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user