php代码提交

This commit is contained in:
wong
2025-12-11 17:32:59 +08:00
parent b2760cde0e
commit 08fc18da86
5 changed files with 153 additions and 35 deletions

View File

@@ -43,10 +43,12 @@ class GetWechatOnDeviceFriendsV1Controller extends BaseController
[
'w.id', 'w.nickname', 'w.avatar', 'w.wechatId',
'CASE WHEN w.alias IS NULL OR w.alias = "" THEN w.wechatId ELSE w.alias END AS wechatAccount',
'f.memo', 'f.tags'
'f.memo', 'f.tags',
'ff.accountUserName', 'ff.accountRealName','ff.id AS friendId'
]
)
->join('wechat_account w', 'w.wechatId = f.wechatId');
->join('wechat_account w', 'w.wechatId = f.wechatId')
->join(['s2_wechat_friend' => 'ff'], 'ff.id = f.id');
foreach ($where as $key => $value) {
if (is_numeric($key) && is_array($value) && isset($value[0]) && $value[0] === 'exp') {