代码提交

This commit is contained in:
wong
2025-07-14 09:31:23 +08:00
parent 3c39b1e2bd
commit acdaa78258
4 changed files with 7 additions and 7 deletions

View File

@@ -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');
}

View File

@@ -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');

View File

@@ -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{

View File

@@ -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');
}