fix
This commit is contained in:
@@ -32,7 +32,7 @@ class Coupons extends Users_Controller {
|
||||
|
||||
$what = $this->input->get('what');
|
||||
$value = $this->input->get('value');
|
||||
echo "RD $what $value";
|
||||
|
||||
if ($what !='' && $value!=''){
|
||||
$data = $this->getSessionArray();
|
||||
$in=[];
|
||||
@@ -44,6 +44,13 @@ class Coupons extends Users_Controller {
|
||||
$this->load->model('backend_model');
|
||||
$out = array();
|
||||
$res = $this->backend_model->wrenchboard_api($in, $out);
|
||||
if ( $res == 0 ){
|
||||
echo 'Completed';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Redeem fail';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user