ztt 10 months ago
parent 560dc3234f
commit 74f27e8b37
  1. 9
      application/admin/model/shopro/goods/Goods.php

@ -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)
{

Loading…
Cancel
Save