This commit is contained in:
aozhiwei 2021-11-18 19:45:57 +08:00
parent 1be6450d5a
commit fa4ea0bec6
2 changed files with 0 additions and 51 deletions

View File

@ -6,39 +6,6 @@ class NTask(object):
def __init__(self):
self.apis = [
{
'desc': 'getGunInfo',
'group': 'NTask',
'url': 'webapp/index.php?c=NTask&a=getGunInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'test',
'group': 'NTask',
'url': 'webapp/index.php?c=NTask&a=test',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateLogin',
'group': 'NTask',
'url': 'webapp/index.php?c=NTask&a=updateLogin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRewardState',
'group': 'NTask',

View File

@ -4,24 +4,6 @@ require_once('mt/Parameter.php');
require_once 'metatable/drop.php';
class NTaskController extends BaseAuthedController {
public $m_testCnt = 0;
public function getGunInfo()
{
$account_id = $_REQUEST['account_id'];
$conn = $this->getMysql($account_id);
$sqlStr = "SELECT * FROM gun_intensify WHERE accountid=:accountid; ";
$row = $conn->execQuery($sqlStr,array(':accountid' => $account_id));
$this->sendDataToClient(0,"test02",$row);
}
public function test()
{
$this->m_testCnt ++;
}
public function updateLogin()//更新登录任务
{
}
public function getRewardState($_num)
{
$g = $_num % 10;