|
@@ -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) {
|