platform notify

This commit is contained in:
cano
2024-03-27 00:11:26 +08:00
parent 01e93acdd8
commit 4b47fe7250
21 changed files with 462 additions and 18 deletions

View File

@ -1,6 +1,7 @@
<?php
namespace App\Models\Wallet\Platform;
use App\Cache\Table\Wallet\TableWalletPlatformCache;
use App\Exceptions\ModelException;
use App\Models\Wallet\Base\WalletBaseModel;
use App\Tools\Times;
@ -49,10 +50,19 @@ class WalletPlatformModel extends WalletBaseModel
return $resModel;
}
//@@给平台下发用户信息
static function userTransactionNotifyToPlatform($user_transaction_id)
function updateItem($aItem,$col = null): bool|int
{
$res = parent::updateItem($aItem,$col); // TODO: Change the autogenerated stub
if($res && isset($aItem[$this->primaryKey])) {
$this->delTableCache($aItem[$this->primaryKey]);
}
return $res;
}
function delTableCache($key): bool
{
$oTableWalletPlatformCache = new TableWalletPlatformCache();
return $oTableWalletPlatformCache->del($key);
}
}