Core.php 511 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Main\Lib;
  3. use Dever;
  4. class Core
  5. {
  6. protected $checkUser = false;
  7. protected $data;
  8. public function __construct()
  9. {
  10. # 获取用户信息
  11. //$this->user = Dever::load('passport/user')->init();
  12. }
  13. public function replacePic($pic, $type = 't1')
  14. {
  15. //$pic = Dever::pic($pic, $type);
  16. if (strstr($pic, 'http://')) {
  17. $pic = str_replace('http://', 'https://', $pic);
  18. }
  19. return $pic;
  20. }
  21. }