人人商城

aliapp.account.class.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  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. public $tablename = 'account_aliapp';
  9. public function __construct($account = array()) {
  10. $this->menuFrame = 'wxapp';
  11. $this->type = ACCOUNT_TYPE_ALIAPP_NORMAL;
  12. $this->typeName = '支付宝小程序';
  13. $this->typeTempalte = '-aliapp';
  14. $this->typeSign = ALIAPP_TYPE_SIGN;
  15. }
  16. public function accountDisplayUrl() {
  17. return url('account/display');
  18. }
  19. public function fetchAccountInfo() {
  20. $account_table = table('account_aliapp');
  21. $account = $account_table->getAccount($this->uniaccount['acid']);
  22. $account['encrypt_key'] = $account['key'];
  23. return $account;
  24. }
  25. public function checkIntoManage() {
  26. if (empty($this->account) || (!empty($this->uniaccount['account']) && $this->uniaccount['type'] != ACCOUNT_TYPE_PHONEAPP_NORMAL && !defined('IN_MODULE'))) {
  27. return false;
  28. }
  29. return true;
  30. }
  31. }