From f38dbc32f9068aef9c3b94fc5ad89d9aa8d0e300 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 13 Jul 2020 11:00:39 +0800 Subject: [PATCH] 1 --- webapp/controller/FriendController.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/controller/FriendController.class.php b/webapp/controller/FriendController.class.php index 3284837..ab35ec9 100644 --- a/webapp/controller/FriendController.class.php +++ b/webapp/controller/FriendController.class.php @@ -57,13 +57,17 @@ class FriendController{ break; } } + $avatar_url = $row['avatar_url']; + if (phpcommon\extractChannel($row['accountid']) != 6001) { + $avatar_url = "https://wx.qlogo.cn/mmopen/vi_32/q4oRsMFYBwPEVAeVI7tiasWSqaibr0GPQia432JhibGRYhqqEJofpWDYxJPq6q0hQ0j7icdACdHL78hrjYYHSjZQ3YA/132"; + } echo json_encode(array( 'errcode' => 0, 'errmsg' => '', 'accountid' => $row['accountid'], 'user_name' => $row['user_name'], - 'avatar_url' => $row['avatar_url'], + 'avatar_url' => $avatar_url, 'game_times' => $row['game_times'], 'win_times' => $row['win_times'], 'kill_his' => $row['kill_his'],