public static function toArray($string, $return_null = false) { $crud = explode(',', $string); if (empty($crud)) { if ($return_null) { return null; } return []; } $array = Img::attachKey($crud); if (empty($array)) { if ($return_null) { return null; } return []; } return $array; }
public function getTmpList() { $dir = '_tmp/' . $this->_cate . '/' . $this->_token . '/'; $re = $this->scan($dir); $imgs = Img::attachKey($re); return $imgs; }