Commit 78eccf4b by Tobin

Merge branch 'master' into 'uat_staging'

dc See merge request !151
parents 92fb0c8f dbd651f6
......@@ -564,10 +564,9 @@ class Webservice extends CI_Controller {
$data = (array) json_decode(file_get_contents('php://input'));
$data['auth_token'] = $this->auth_token;
$res = $this->Webservice_model->validate_promo_code($data);
if($res['status']!=0){
if($res['status'] == 1 || $res['status'] == 5){
$this->response($res['data']);
}
else{
}else{
$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