Jelajahi Sumber

add function createuser

andre 3 tahun lalu
induk
melakukan
ae9ecf0080
1 mengubah file dengan 3 tambahan dan 6 penghapusan
  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) {
 function cwp7_TerminateAccount($params) {