Commit 77ddaff7 by Tobin

dc

parent fe2a3c60
...@@ -132,7 +132,7 @@ class Webservice extends CI_Controller { ...@@ -132,7 +132,7 @@ class Webservice extends CI_Controller {
print json_encode($result); print json_encode($result);
} }
public function successResponse($data) { public function successResponse($data='') {
$result = array( $result = array(
'status' => 'success', 'status' => 'success',
); );
...@@ -587,7 +587,7 @@ class Webservice extends CI_Controller { ...@@ -587,7 +587,7 @@ class Webservice extends CI_Controller {
$res = $this->Webservice_model->update_user_visibility($data); $res = $this->Webservice_model->update_user_visibility($data);
if($res['status'] != 0){ if($res['status'] != 0){
$this->response(); $this->successResponse();
} else { } else {
$this->errorResponse($res['code'],$res['message']); $this->errorResponse($res['code'],$res['message']);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment