aliapp.account.class.php 871 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 AliappAccount extends WeAccount {
  8. protected $tablename = 'account_aliapp';
  9. protected $menuFrame = 'wxapp';
  10. protected $type = ACCOUNT_TYPE_ALIAPP_NORMAL;
  11. protected $typeName = '支付宝小程序';
  12. protected $typeTempalte = '-aliapp';
  13. protected $typeSign = ALIAPP_TYPE_SIGN;
  14. protected $supportVersion = STATUS_ON;
  15. protected function getAccountInfo($acid) {
  16. return table('account_aliapp')->getAccount($acid);
  17. }
  18. public function checkIntoManage() {
  19. if (empty($this->account) || (!empty($this->account['account']) && $this->account['type'] != ACCOUNT_TYPE_ALIAPP_NORMAL && !defined('IN_MODULE'))) {
  20. return false;
  21. }
  22. return true;
  23. }
  24. }