fix
This commit is contained in:
@@ -39,6 +39,7 @@ $endpoints = array(
|
||||
'couponhx' => array('POST'),
|
||||
'couponpending' => array('POST'),
|
||||
'couponredeem' => array('POST'),
|
||||
'sendinterestmessage' => array('POST'),
|
||||
);
|
||||
|
||||
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
|
||||
@@ -101,6 +102,16 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
|
||||
}
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
switch ($endpoint) {
|
||||
case 'sendinterestmessage':
|
||||
|
||||
// $in['offer_code'] = $this->input->get('offer_code');
|
||||
$in['yourmessage'] = $in["question"];
|
||||
//$in['member_id'] = $_SESSION['member_id']; // just maing sure
|
||||
$in['msg_type'] = 'JOB';
|
||||
// $in['action'] = WRENCHBOARD_JOB_SEND_QUESTION;
|
||||
|
||||
$in["action"] = WRENCHBOARD_JOB_SEND_QUESTION;
|
||||
break;
|
||||
case 'couponredeem':
|
||||
$in["action"] = WRENCHBOARD_COUPON_REDEEM;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user