Files
OMS/app/brush/model/farm.php
2025-12-28 23:13:25 +08:00

37 lines
988 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* @author ykm 2015-11-17
* @describe 特殊订单条件
*/
class brush_mdl_farm extends dbeav_model{
/**
* modifier_shop_ids
* @param mixed $col col
* @return mixed 返回值
*/
public function modifier_shop_ids($col){
$arrShopName = app::get('ome')->model('shop')->getList('name', array('shop_id|in' => explode(',', $col)));
$strShopName = '';
foreach($arrShopName as $val){
$strShopName .= $val['name'] . ',';
}
return trim($strShopName, ',');
}
/**
* modifier_mark_type
* @param mixed $col col
* @return mixed 返回值
*/
public function modifier_mark_type($col){
$arrMarkType = kernel::single('ome_order_func')->order_mark_type();
return $col ? "<img src='{$arrMarkType[$col]}' width='20'height='20'>" : '';
}
}
?>