|
@@ -281,7 +281,7 @@ function get32Str($length='32'){
|
|
|
|
|
|
|
|
|
|
|
|
- function hx_register($username,$password='999999'){
|
|
|
+ function hx_register($username){
|
|
|
$data = array(
|
|
|
'grant_type' => 'client_credentials',
|
|
|
'client_id' => 'YXA6NS5H0GDGEe20Q9VWb7Fpew',
|
|
@@ -291,7 +291,7 @@ function get32Str($length='32'){
|
|
|
$token_res = json_decode($token_res,true);
|
|
|
$param = array(
|
|
|
'username' => 'act'.$username.rand(0000,9999),
|
|
|
- 'password' => $password
|
|
|
+ 'password' => 'act'.$username.rand(0000,9999).'@'
|
|
|
);
|
|
|
$hx_account = http_post_json('https://a1-vip5.easemob.com/1414221110068467/kefuchannelapp104968/users',json_encode($param),$token_res['access_token']);
|
|
|
if(!isset($hx_account['entities'][0]['uuid'])){
|