36 lines
933 B
PHP
Executable File
36 lines
933 B
PHP
Executable File
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | 宏驰云科技开发团队 版权所有 拥有最终解释权
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | Author: HcyShop-kiki
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\common\model;
|
|
|
|
use app\common\server\UrlServer;
|
|
use think\Model;
|
|
|
|
class OrderGoods extends Model
|
|
{
|
|
|
|
//订单商品退款状态
|
|
const REFUND_STATUS_NO = 0;//未申请退款
|
|
const REFUND_STATUS_APPLY = 1;//申请退款
|
|
const REFUND_STATUS_WAIT = 2;//等待退款
|
|
const REFUND_STATUS_SUCCESS = 3;//退款成功
|
|
|
|
public function getImageAttr($value, $data)
|
|
{
|
|
if ($value) {
|
|
return UrlServer::getFileUrl($value);
|
|
}
|
|
return $value;
|
|
}
|
|
|
|
public function getBaseImageAttr($value, $data)
|
|
{
|
|
return $data['image'];
|
|
}
|
|
|
|
} |