fix
This commit is contained in:
@@ -277,6 +277,10 @@ define('PAY_MODE_BONUS', 9);
|
||||
define('APPROVED_BALANCE', 5);
|
||||
define('DISAPROVE_BALANCE', 3);
|
||||
|
||||
// define('WRENCHBOARD_COUPON_CREATE', 85010);
|
||||
// define('WRENCHBOARD_COUPON_ACTIVATE',85015);
|
||||
define('WRENCHBOARD_COUPON_REDEEM', 85020);
|
||||
|
||||
|
||||
define('WRENCHBOARD_USER_SENDMONEY', 11051);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user