Beruflich Dokumente
Kultur Dokumente
7659
http://www.7659.com
2016-08-17
................................................................................................................................ 4
1 : ........................................................................................................................... 4
2 .................................................................................................................... 6
............................................................................................................................ 7
l A
* M * D
1.0
2013-11-01
1.0.1
2013-12-01
M: GUID
1.0.2
2013-12-26
M:
A:
2.0
2015-05-22
2.2.1
2015-09-15
M: HISDK
2.2.3
2015-12-14
M:
2.2.3.1
2015-12-24
M:
2.2.3.2
2016-01-25
M:
M:
D: CODE
3.0.0
2016-03-02
D:
M:
A: IOS ANDROID
A: TOKENKEY
3.0.1
2016-08-17
URLENCODE +
1 :
7659 SDK
3 tokenKey
6
2 tokenKey
4 tokenKey+ sign
7659
SDK
tokenKey
1 SDK 7659
2 7659 SDK( tokenKey)
3 SDK tokenKey
4 tokenKey sign 7659
5 7659 guid
6
SDK
tokenKey
SDK tokenKey
sign
tokenKey=a43cd7a510fc3b06792a0cb509b58415
&sign=aee0f84886d038b931a7bedab9d8040f
AppKey 111tokenKey 222 sign md5(111222)
32
: tokenKey urlEncodemd5 urlEncode
:
tokenKey=urlEncode(tokenKey )&sign=md5(appkey+tokenKey
)
code
0 msg
msg
msg
data
code 0
guid
username
{"code":0,"msg":"",
"data":{"guid":"s1234567890","username":"testUser"}}
username
2
Android : http://api.hisdk.7659.com/user/get
IOShttp://f_signin.bppstore.com/loginCheck.php
post
PHP
/**
*
*
*
* @param $token
sdk token
* @param $platform
ios or android
* @return array|mixed
*/
function login($token, $platform) {
/*
* 7659 AppKey(ios) HI_GAMEKEY(android)
*/
$AppKey = '4c84a84396b3ec46f5bddb496059d21f';
$url = array(
'ios' => 'http://f_signin.bppstore.com/loginCheck.php',
'android' => 'http://api.hisdk.7659.com/user/get',
);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url[$platform]);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array(
'tokenKey' => $token,
'sign' => md5($AppKey . $token),
)));
$return = array();
$return['data'] = curl_exec($curl);
$return['code'] = curl_errno($curl);
$return['msg'] = curl_error($curl);
curl_close($curl);
return $return['code'] ? $return : json_decode($return['data'], true);
$token =
'q6W5LuM1IFJjhYNj6GQ70ilDbPkDgtlbycCprlYQ8IdYzkPdDDwjKGqtWlIHt94vW2lLmrfZeSta5QVHZX4DX+cG03J
BLIU4Q6SCCKFOl1d5kesSpvI+87eMopA7y8YeEfTPV2wzCiThlzwz4kT6PfaX2sEPX38w/3VfNglsRx8=zRBTcj28xlt
2tg1bk1FHv9gYQr3CCZ+vqxviatGAhNuCqZzVa1mTiUERVGb+w0MTyQsO7A7I3eVpdNy4gmdeds2oSfHwmKti9+4xVZN
XSiXGrvOUM5R05zEcOouuM0zKkPfsK7Qyg7y9uFguLd1pkmBaqJArxGK7ZjeZMvixc0A=';
var_dump(login($token, 'android'));
guid 7659 7659
uid
1 guid username
username guid
2 SDK tokenKey
tokenKey
3 tokenKey +
tokenKey SDK