初始化项目

This commit is contained in:
augushong
2021-06-19 13:09:45 +08:00
parent 9dff1d6115
commit ae9f2c6999
176 changed files with 23274 additions and 0 deletions

27
app/model/User.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace app\model;
use think\Model;
use think\model\concern\SoftDelete;
/**
* @mixin think\Model
*/
class User extends Model
{
//
use SoftDelete;
protected $defaultSoftDelete = 0;
public function getAvatarAttr($value)
{
if(empty($value)){
return '/static/images/avatar.png';
}
return \get_source_link($value);
}
}