init commit
This commit is contained in:
41
application/api/model/wdsxh/points/Goods.php
Normal file
41
application/api/model/wdsxh/points/Goods.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 麦沃德科技赋能开发者,助力中小企业发展
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2024 www.wdadmin.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Wdadmin系统产品软件并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\api\model\wdsxh\points;
|
||||
|
||||
use app\api\model\wdsxh\Base;
|
||||
use traits\model\SoftDelete;
|
||||
|
||||
class Goods extends Base
|
||||
{
|
||||
use SoftDelete;
|
||||
|
||||
|
||||
|
||||
// 表名
|
||||
protected $name = 'wdsxh_points_goods';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = 'integer';
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = false;
|
||||
protected $updateTime = false;
|
||||
protected $deleteTime = 'deletetime';
|
||||
|
||||
protected function getSliderImagesAttr($value)
|
||||
{
|
||||
$array = explode(',',$value);
|
||||
foreach ($array as $k=>$v) {
|
||||
$array[$k] = wdsxh_full_url($v);
|
||||
}
|
||||
return implode(',',$array);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user