platform notify
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user