This commit is contained in:
2022-06-02 21:15:27 -04:00
parent 07c3425046
commit ebe13ef30b
2 changed files with 21 additions and 6 deletions
+8 -1
View File
@@ -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';
}
}
}