人人商城

xzapp.platform.class.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 $supportOauthInfo = STATUS_ON;
  17. protected $supportJssdk = STATUS_ON;
  18. public function __construct($uniaccount = array()) {
  19. $setting['token'] = 'we7';
  20. $setting['encodingaeskey'] = 'g4LUbkbCbYmdXBeilamDMsU905IXfqjT5avgMETyV0e';
  21. $setting['appid'] = 'TrarDDV5IcTTxOffEXx58Gt5LsqlGyVi';
  22. $setting['appsecret'] = 'jCfdywGiBpaGxp2ivS5uHXIsEOLrzhZY';
  23. $setting['authstate'] = 1;
  24. $setting['url'] = 'https://ccceshi.w7.cc/xiongzhang_api.php';
  25. $_W['setting']['xzapp'] = $setting;
  26. $this->appid = $setting['appid'];
  27. $this->appsecret = $setting['appsecret'];
  28. $this->token = $setting['token'];
  29. $this->encodingaeskey = $setting['encodingaeskey'];
  30. }
  31. protected function getAccountInfo($acid) {
  32. return table('account_xzapp')->getByAcid($acid);
  33. }
  34. }