2024-05-31 17:54:46 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace app\common\model\system_store;
|
|
|
|
|
|
|
|
|
|
|
|
use app\common\model\BaseModel;
|
2024-09-02 15:31:07 +08:00
|
|
|
use Illuminate\Support\Facades\Log;
|
2024-05-31 17:54:46 +08:00
|
|
|
use think\model\concern\SoftDelete;
|
2024-09-02 15:31:07 +08:00
|
|
|
use Throwable;
|
2024-05-31 17:54:46 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 门店列表模型
|
|
|
|
* Class SystemStore
|
|
|
|
* @package app\common\model\system_store
|
|
|
|
*/
|
|
|
|
class SystemStore extends BaseModel
|
|
|
|
{
|
|
|
|
use SoftDelete;
|
|
|
|
protected $name = 'system_store';
|
|
|
|
protected $deleteTime = 'delete_time';
|
|
|
|
|
2024-09-02 15:31:07 +08:00
|
|
|
public static function onAfterWrite($data){
|
|
|
|
try{
|
|
|
|
channelLog($data->getOrigin(),'system_store','更新前');
|
|
|
|
channelLog($data->toArray(),'system_store','更新后');
|
|
|
|
}catch(Throwable $e){
|
|
|
|
Log::error('system_store:'.$e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
2024-05-31 17:54:46 +08:00
|
|
|
}
|