This commit is contained in:
cano
2024-03-08 00:58:23 +08:00
parent bebbee4184
commit b14c000bc3
25 changed files with 1681 additions and 8 deletions

View File

@ -5,7 +5,7 @@ namespace App\Models\Api\Customer;
use App\Exceptions\ModelException;
use App\Jobs\UserActiveStatusQueue;
use App\Models\Api\Post\PostPushBoxModel;
use App\Models\Api\WebSocket\ApiWsHistoryModel;
use App\Models\Api\WebSocket\CustomerWsHistoryModel;
use App\Models\Api\Base\ApiBaseModel;
use App\Structs\QueueUserActiveStatusStruct;
use Carbon\Carbon;
@ -93,7 +93,7 @@ class CustomerUserExtendModel extends ApiBaseModel
{
if (empty($date)) $date = Carbon::yesterday()->toDateString();
$oCustomerWsHistoryModel = new ApiWsHistoryModel();
$oCustomerWsHistoryModel = new CustomerWsHistoryModel();
$aActiveUserIdList = $oCustomerWsHistoryModel->getActiveUserIdList($date); //三日内活跃用户
if (empty($aActiveUserIdList)) return;
$oCustomerChangeInfoLogModel = new CustomerChangeInfoLogModel();
@ -139,7 +139,7 @@ class CustomerUserExtendModel extends ApiBaseModel
{
try{
Db::beginTransaction();
$oCustomerWsHistoryModel = new ApiWsHistoryModel();
$oCustomerWsHistoryModel = new CustomerWsHistoryModel();
$aActiveUserId = $oCustomerWsHistoryModel->findActiveUserId($uid, Carbon::yesterday()->toDateString()); //三日内活跃用户
if(empty($aActiveUserId)) return;
$oCustomerUserExtendModel = $this->newQuery()->where('uid', $uid)->first(['uid','is_active']);