Browse Source

add function createuser

andre 3 năm trước cách đây
mục cha
commit
ae9ecf0080
1 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 3 6
      cwp7.php

+ 3 - 6
cwp7.php

@@ -126,13 +126,10 @@ function cwp7_CreateAccount($params) {
 		);
 
 	}
-	if($response['status'] == 'OK') {
-		$result='success';
-	} else {
-		$result = json_decode($answer,true);
-		$result = $result['msj'];
+	if($response['status'] != 'OK') {
+		return $result['msj'];
 	}
-	return $result;
+	return 'success';
 }
 
 function cwp7_TerminateAccount($params) {