Common.php 677 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\mobile\controller;
  3. use app\mobile\logic\CommonLogic;
  4. use app\admin\logic\CommonLogic as AdminCommonLogic;
  5. use app\BaseController;
  6. //公共
  7. class Common extends BaseController
  8. {
  9. //省市区编码
  10. public function area()
  11. {
  12. $parent_code = $this->request->post('parent_code', '');
  13. return AdminCommonLogic::getAddr($parent_code);
  14. }
  15. //视频列表
  16. public function getVideoList()
  17. {
  18. $param = $this->request->only(['page' => 1, 'size' => 10], 'post');
  19. return CommonLogic::getVideoList($param);
  20. }
  21. //手机主题
  22. public function theme()
  23. {
  24. return CommonLogic::theme();
  25. }
  26. }