Example #1
0
 /**
  * 获得富人国账号通行证
  */
 public function getFrgSk($userName = '', $passWord = '', $LoginKey = '')
 {
     if (empty($userName)) {
         $userName = $this->_userName;
     }
     if (empty($passWord)) {
         $passWord = $this->_passWord;
     }
     if (empty($LoginKey)) {
         $LoginKey = $this->_superLoginKey;
     }
     return Tools::passport_encrypt($userName . '|' . md5($passWord), $LoginKey);
 }
Example #2
0
 /**
  * 增加一个http请求
  * @param int/string $server 服务器流水号/url地址
  * @param array $get	get值
  * @param array $post   post值
  */
 public function addHttp($server, $get = NULL, $post = NULL)
 {
     if (is_numeric($server)) {
         $key = $server;
         $gameServerList = $this->_getGlobalData('gameser_list');
         $url = $gameServerList[$server]['server_url'] . 'php/interface.php?m=Admin&__hj_dt=' . $this->_encodeType . '&__sk=' . Tools::passport_encrypt(self::USER_NAME . '|' . md5(self::PASSWORD), self::SUPER_LOGIN_KEY);
         parent::_addHttp($key, $url, $get, $post);
     } else {
         self::$_autoKey++;
         $url = $server;
         $url .= '?__hj_dt=' . $this->_encodeType . '&__sk=' . Tools::passport_encrypt(self::USER_NAME . '|' . md5(self::PASSWORD), self::SUPER_LOGIN_KEY);
         parent::_addHttp(self::$_autoKey, $url, $get, $post);
     }
 }
Example #3
0
 public function getSignArr($getData = array())
 {
     $actionName = $getData['action'];
     return array('__sk' => Tools::passport_encrypt(self::USER_NAME . '|' . md5($this->_key), self::SUPER_LOGIN_KEY), '__hj_dt' => self::_encodeType);
 }