wallet
This commit is contained in:
@ -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']);
|
||||
|
||||
@ -6,7 +6,7 @@ use App\Models\Api\Base\ApiBaseModel;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class ApiWsHistoryModel extends ApiBaseModel
|
||||
class CustomerWsHistoryModel extends ApiBaseModel
|
||||
{
|
||||
protected $table = 'customer_ws_history';
|
||||
protected $primaryKey = 'id';
|
||||
Reference in New Issue
Block a user