toutiaoapp.account.class.php 896 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. class ToutiaoappAccount extends WeAccount {
  8. protected $tablename = 'account_toutiaoapp';
  9. protected $menuFrame = 'wxapp';
  10. protected $type = ACCOUNT_TYPE_TOUTIAOAPP_NORMAL;
  11. protected $typeName = '头条小程序';
  12. protected $typeTempalte = '-toutiaoapp';
  13. protected $typeSign = TOUTIAOAPP_TYPE_SIGN;
  14. protected $supportVersion = STATUS_ON;
  15. protected function getAccountInfo($acid) {
  16. return table('account_toutiaoapp')->getAccount($acid);
  17. }
  18. public function checkIntoManage() {
  19. if (empty($this->account) || (!empty($this->account['account']) && $this->account['type'] != ACCOUNT_TYPE_TOUTIAOAPP_NORMAL && !defined('IN_MODULE'))) {
  20. return false;
  21. }
  22. return true;
  23. }
  24. }