30 lines
709 B
PHP
Raw Normal View History

<?php
namespace app\common\model\system_store;
use app\common\model\BaseModel;
use Illuminate\Support\Facades\Log;
use think\model\concern\SoftDelete;
use Throwable;
/**
* 门店列表模型
* Class SystemStore
* @package app\common\model\system_store
*/
class SystemStore extends BaseModel
{
use SoftDelete;
protected $name = 'system_store';
protected $deleteTime = 'delete_time';
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());
}
}
}