贵古互联-APP手机版授权key通信接口地址及验证原理
贵古互联-APP手机版授权key通信接口地址及验证原理:
- if (!$accredit_key || $accredit_key != $config['authorization_key']) {
- $data = array('accredit_key' => $config['authorization_key'], 'siteurl' => $_G['siteurl']);
- $url = 'http://sq.gzqtjr.com/sq.php';
- $res = json_decode(self::post($url, $data), true);
- if ($res['code'] == 1 && $res['data']['key']) {
- self::writeKey($res['data']['key']);
- return true;
- }
- exit('error key verif failed');
- } else {
- return true;
- }