代码提交
This commit is contained in:
@@ -886,8 +886,8 @@ class ContentLibraryController extends Controller
|
||||
$friendData = [];
|
||||
try {
|
||||
$toAccountId = '';
|
||||
$username = Env::get('api.username', '');
|
||||
$password = Env::get('api.password', '');
|
||||
$username = Env::get('api.username2', '');
|
||||
$password = Env::get('api.password2', '');
|
||||
if (!empty($username) || !empty($password)) {
|
||||
$toAccountId = Db::name('users')->where('account',$username)->value('s2_accountId');
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class GetFriendListV1Controller extends BaseController
|
||||
->where(['d.companyId' => $this->getUserInfo('companyId'),'d.deleteTime' => 0]);
|
||||
|
||||
if (!empty($deviceIds)){
|
||||
$wechatIds = $wechatIds->where('d.deviceId','in',$deviceIds);
|
||||
$wechatIds = $wechatIds->where('d.id','in',$deviceIds);
|
||||
}
|
||||
$wechatIds = $wechatIds->column('dwl.wechatId');
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ class WechatMomentsJob
|
||||
public function fire(Job $job, $data)
|
||||
{
|
||||
$toAccountId = '';
|
||||
$username = Env::get('api.username', '');
|
||||
$password = Env::get('api.password', '');
|
||||
$username = Env::get('api.username2', '');
|
||||
$password = Env::get('api.password2', '');
|
||||
if (!empty($username) || !empty($password)) {
|
||||
$toAccountId = Db::name('users')->where('account',$username)->value('s2_accountId');
|
||||
}else{
|
||||
|
||||
@@ -209,8 +209,8 @@ class WorkbenchAutoLikeJob
|
||||
protected function processFriendMoments($workbench, $config, $friend)
|
||||
{
|
||||
$toAccountId = '';
|
||||
$username = Env::get('api.username', '');
|
||||
$password = Env::get('api.password', '');
|
||||
$username = Env::get('api.username2', '');
|
||||
$password = Env::get('api.password2', '');
|
||||
if (!empty($username) || !empty($password)) {
|
||||
$toAccountId = Db::name('users')->where('account',$username)->value('s2_accountId');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user