xzapp.platform.class.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. defined('IN_IA') or exit('Access Denied');
  3. load()->classs('xzapp.account');
  4. class XzappPlatform extends XzappAccount {
  5. protected $appid;
  6. protected $appsecret;
  7. protected $encodingaeskey;
  8. protected $token;
  9. protected $refreshtoken;
  10. protected $account;
  11. protected $tablename = 'account_xzapp';
  12. protected $menuFrame = 'account';
  13. protected $type = ACCOUNT_TYPE_XZAPP_NORMAL;
  14. protected $typeName = '熊掌号';
  15. protected $typeSign = XZAPP_TYPE_SIGN;
  16. protected $typeTempalte = '-xzapp';
  17. public function __construct($uniaccount = array()) {
  18. $setting['token'] = 'we7';
  19. $setting['encodingaeskey'] = 'g4LUbkbCbYmdXBeilamDMsU905IXfqjT5avgMETyV0e';
  20. $setting['appid'] = 'TrarDDV5IcTTxOffEXx58Gt5LsqlGyVi';
  21. $setting['appsecret'] = 'jCfdywGiBpaGxp2ivS5uHXIsEOLrzhZY';
  22. $setting['authstate'] = 1;
  23. $setting['url'] = 'https://ccceshi.w7.cc/xiongzhang_api.php';
  24. $_W['setting']['xzapp'] = $setting;
  25. $this->appid = $setting['appid'];
  26. $this->appsecret = $setting['appsecret'];
  27. $this->token = $setting['token'];
  28. $this->encodingaeskey = $setting['encodingaeskey'];
  29. }
  30. protected function getAccountInfo($acid) {
  31. return table('account_xzapp')->getByAcid($acid);
  32. }
  33. }