'timestamp:Y-m-d' ]; //库存数量_读取器 public function getNumsAttr($val,$data){ return floatval($val); } }