```
//数据自动完成
protected $auto = [ 'ip'];
//新增时自动更新
protected $insert = ['status' => 1,'role'=>0,'tsign'=>0,'sign'=>0,'score'=>200];
//修改时自动更新
protected $update = [];
//获取ip,自动完成
protected function setIpAttr()
{
return request()->ip();
}
```