1
This commit is contained in:
parent
7d52ce5bed
commit
17cc2e2909
@ -38,7 +38,7 @@ class FriendController extends BaseAuthedController {
|
||||
|
||||
public function selectUserInfo()
|
||||
{
|
||||
$account_id = $_REQUEST['account_id'];
|
||||
$target_id = $_REQUEST['target_id'];
|
||||
$conns = $this->getAllMysql();
|
||||
if (!$conns) {
|
||||
phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家');
|
||||
@ -52,7 +52,7 @@ class FriendController extends BaseAuthedController {
|
||||
foreach ($conns as $conn) {
|
||||
$row = $conn->execQueryOne('SELECT accountid, user_name, avatar_url, game_times, win_times, kill_his, kills, harm_his, harm, integral, modify_time, alive_time, add_HP, head_kuang_id, max_integral, sex FROM user WHERE accountid=:account_id;',
|
||||
array(
|
||||
':account_id' => $account_id,
|
||||
':account_id' => $target_id,
|
||||
));
|
||||
if ($row) {
|
||||
$flag = 1;
|
||||
@ -60,7 +60,7 @@ class FriendController extends BaseAuthedController {
|
||||
|
||||
$rowbags = $conn->execQuery('SELECT id, color_id FROM bag WHERE accountid=:account_id AND status=0;',
|
||||
array(
|
||||
':account_id' => $account_id,
|
||||
':account_id' => $target_id,
|
||||
));
|
||||
if ($rowbags) {
|
||||
$flag = 1;
|
||||
@ -68,11 +68,11 @@ class FriendController extends BaseAuthedController {
|
||||
|
||||
$rowequip = $conn->execQueryOne('SELECT using_id FROM equip WHERE accountid=:account_id;',
|
||||
array(
|
||||
':account_id' => $account_id,
|
||||
':account_id' => $target_id,
|
||||
));
|
||||
$rowlv = $conn->execQueryOne('SELECT using_id, lv FROM equip WHERE accountid=:account_id AND id=:id;',
|
||||
array(
|
||||
':account_id' => $account_id,
|
||||
':account_id' => $target_id,
|
||||
':id' => $rowequip['using_id']
|
||||
));
|
||||
if ($rowequip || $rowlv) {
|
||||
@ -98,7 +98,7 @@ class FriendController extends BaseAuthedController {
|
||||
}
|
||||
}
|
||||
$addreward = new classes\Addreward();
|
||||
$vip_level = $addreward->getVipLevel($account_id);
|
||||
$vip_level = $addreward->getVipLevel($target_id);
|
||||
$avatar_url = $row['avatar_url'];
|
||||
}
|
||||
|
||||
@ -133,7 +133,7 @@ class FriendController extends BaseAuthedController {
|
||||
|
||||
public function selectUser()
|
||||
{
|
||||
$account_id = $_REQUEST['account_id'];
|
||||
$target_id = $_REQUEST['target_id'];
|
||||
$conns = $this->getAllMysql();
|
||||
if (!$conns) {
|
||||
phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家');
|
||||
@ -144,7 +144,7 @@ class FriendController extends BaseAuthedController {
|
||||
foreach ($conns as $conn) {
|
||||
$row = $conn->execQueryOne('SELECT user_name FROM user WHERE accountid=:account_id;',
|
||||
array(
|
||||
':account_id' => $account_id,
|
||||
':account_id' => $target_id,
|
||||
));
|
||||
if ($row) {
|
||||
$flag = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user