|
|
|
@ -130,6 +130,15 @@ class Goods extends Common |
|
|
|
|
return isset($list[$value]) ? $list[$value] : ''; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function setDispatchTypeAttr($value, $data) { |
|
|
|
|
return is_array($value) ? join(',', $value) : $value; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getDispatchTypeAttr($value, $data) { |
|
|
|
|
$ids = $this->attrFormatComma($value, $data, 'dispatch_type', true); |
|
|
|
|
return $ids ? array_values(array_filter(array_map("intval", $ids))) : $ids; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function getPriceAttr($value, $data) |
|
|
|
|
{ |
|
|
|
|