init commit

This commit is contained in:
2026-03-17 09:56:00 +08:00
commit e2c8ae752d
6827 changed files with 1211784 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者,助力商协会发展
// +----------------------------------------------------------------------
// | Copyright (c) 20172024 www.wdsxh.cn All rights reserved.
// +----------------------------------------------------------------------
// | 沃德商协会系统并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
// +----------------------------------------------------------------------
/**
* Class Goods
* Desc 商城商品
* Create on 2024/3/13 16:20
* Create by @小趴菜
*/
namespace app\api\model\wdsxh\goods;
use app\api\model\wdsxh\Base;
use traits\model\SoftDelete;
class Goods extends Base
{
use SoftDelete;
// 表名
protected $name = 'wdsxh_mall_goods';
// 自动写入时间戳字段
protected $autoWriteTimestamp = true;
// 定义时间戳字段名
protected $createTime = true;
protected $updateTime = false;
protected $deleteTime = 'deletetime';
protected function getRecommendImageAttr($value){
return wdsxh_full_url($value);
}
protected function getSliderImagesAttr($value)
{
$array = explode(',',$value);
foreach ($array as $k=>$v) {
$array[$k] = wdsxh_full_url($v);
}
return implode(',',$array);
}
}