1
This commit is contained in:
parent
01926a2f6e
commit
119a866623
@ -78,11 +78,6 @@ class BaseAuthedController extends BaseController {
|
||||
return $r;
|
||||
}
|
||||
|
||||
public function _isValidSex($sex)
|
||||
{
|
||||
return in_array($sex, array(0, 1, 2));
|
||||
}
|
||||
|
||||
public function _getUserInfo($fields)
|
||||
{
|
||||
$row = SqlHelper::selectOne
|
||||
@ -142,15 +137,6 @@ class BaseAuthedController extends BaseController {
|
||||
);
|
||||
}
|
||||
|
||||
public function _sendDataToClient($_code,$_msg,$_data)
|
||||
{
|
||||
echo json_encode(array(
|
||||
'errcode' => $_code,
|
||||
'errmsg' => $_msg,
|
||||
'data' => $_data,
|
||||
));
|
||||
}
|
||||
|
||||
public function _getItem($itemId)
|
||||
{
|
||||
$row = SqlHelper::selectOne
|
||||
@ -390,21 +376,6 @@ class BaseAuthedController extends BaseController {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function _getUsingEquipId()
|
||||
{
|
||||
$row = SqlHelper::selectOne
|
||||
($this->_getSelfMysql(),
|
||||
'equip',
|
||||
array(
|
||||
'using_id',
|
||||
),
|
||||
array(
|
||||
'accountid' => $this->_getAccountId(),
|
||||
)
|
||||
);
|
||||
return $row ? $row['using_id'] : 0;
|
||||
}
|
||||
|
||||
public function _redisSetAndExpire($pk, $key, $val, $time)
|
||||
{
|
||||
$r = $this->_getRedis($pk);
|
||||
|
@ -52,15 +52,6 @@ class BaseController {
|
||||
));
|
||||
}
|
||||
|
||||
public function _rspDataOld($data)
|
||||
{
|
||||
echo json_encode(array(
|
||||
'errcode' => 0,
|
||||
'errmsg' => '',
|
||||
'data' => $data
|
||||
));
|
||||
}
|
||||
|
||||
public function _rspData($data)
|
||||
{
|
||||
$rawData = array(
|
||||
@ -78,17 +69,4 @@ class BaseController {
|
||||
echo json_encode($rawData);
|
||||
}
|
||||
|
||||
public function _getExplode($string)
|
||||
{
|
||||
$delim = "|";
|
||||
$drop_multiply = explode($delim, $string);
|
||||
$delim1 = ":";
|
||||
$arr = array();
|
||||
for ($i = 0; $i < count($drop_multiply); $i++) {
|
||||
$mul = explode($delim1, $drop_multiply[$i]);
|
||||
array_push($arr, $mul);
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user