审查视图

application/api/model/OrderGoods.php 425 字节
李忠强 authored
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php


namespace app\api\model;


use think\Model;

class OrderGoods extends Model
{
    protected $name = 'litestore_order_goods';
    protected $createTime = 'createtime';
    protected $updateTime = '';
李忠强 authored
14 15 16 17 18 19 20 21 22
    protected $append = [
        'image_text'
    ];

    public function getImageTextAttr($value,$data)
    {
        $value = !empty($data['image']) ? cdnurl($data['image'],true) : '';
        return $value;
    }
李忠强 authored
23
}