This commit is contained in:
aozhiwei 2021-11-23 15:46:00 +08:00
parent dcef9da0bc
commit 87b36dd855
2 changed files with 0 additions and 36 deletions

View File

@ -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', 'desc': 'getPlayerInfo',
'group': 'NPlayerInfo', 'group': 'NPlayerInfo',

View File

@ -579,33 +579,8 @@ class RoleController extends BaseAuthedController {
$this->sendDataToClient(3, "ok", $userInfo); $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() public function getPlayerInfo()
{ {
$account_id = $_REQUEST['acctID']; $account_id = $_REQUEST['acctID'];
$conn = $this->getMysql($account_id); $conn = $this->getMysql($account_id);
$from = $_REQUEST['from']; $from = $_REQUEST['from'];