Creater.php 275 B

1234567891011121314151617181920
  1. <?php
  2. namespace Content\Lib;
  3. use Dever;
  4. class Creater
  5. {
  6. public function getInfo($id)
  7. {
  8. $data = Dever::db('content/creater')->one(array('id' => $id));
  9. if ($data) {
  10. $data['desc'] = $data['name'];
  11. }
  12. return $data;
  13. }
  14. }