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'],