微信列表及设备列表优化
This commit is contained in:
@@ -79,6 +79,7 @@ class GetDeviceListV1Controller extends BaseController
|
||||
])
|
||||
->leftJoin('device_wechat_login l', 'd.id = l.deviceId and l.alive =' . DeviceWechatLoginModel::ALIVE_WECHAT_ACTIVE . ' and l.companyId = d.companyId')
|
||||
->leftJoin('wechat_account a', 'l.wechatId = a.wechatId')
|
||||
->group('l.wechatId')
|
||||
->order('d.id desc');
|
||||
|
||||
foreach ($where as $key => $value) {
|
||||
@@ -124,7 +125,7 @@ class GetDeviceListV1Controller extends BaseController
|
||||
$curstomer = WechatCustomerModel::field('friendShip')
|
||||
->where(
|
||||
[
|
||||
'companyId' => $this->getUserInfo('companyId'),
|
||||
//'companyId' => $this->getUserInfo('companyId'),
|
||||
'wechatId' => $wechatId
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user