This commit is contained in:
2022-05-31 19:47:51 -04:00
parent 8f1507548e
commit 6949150647
2 changed files with 17 additions and 0 deletions
+13
View File
@@ -27,6 +27,19 @@ 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=[];
$in['code_id'] = $what;
$in['code'] = $value; // just maing sure
$in['member_id'] = $_SESSION['member_id'];
$in['action'] = WRENCHBOARD_COUPON_REDEEM;
$this->load->model('backend_model');
$out = array();
$res = $this->backend_model->wrenchboard_api($in, $out);
}
}
}