fix
This commit is contained in:
@@ -642,22 +642,23 @@ class Jobs extends Users_Controller {
|
||||
$data = $this->getSessionArray();
|
||||
|
||||
// echo 'Ameye';
|
||||
$data['offer_code'] = $this->input->get('offer_code');
|
||||
$data['yourmessage'] = $this->input->get('yourmessage');
|
||||
$data['interest_id'] = $this->input->get('interest_id');
|
||||
$data['member_id'] = $_SESSION['member_id']; // just maing sure
|
||||
$data['msg_type'] = 'MRKTINT'; // MARKET INTEREST
|
||||
$in =[];
|
||||
$in['offer_code'] = $this->input->get('offer_code');
|
||||
$in['yourmessage'] = $this->input->get('yourmessage');
|
||||
$in['interest_id'] = $this->input->get('interest_id');
|
||||
$in['member_id'] = $_SESSION['member_id']; // just maing sure
|
||||
$in['msg_type'] = 'MRKTINT'; // MARKET INTEREST
|
||||
|
||||
$data['action'] = WRENCHBOARD_JOB_MRKTINT_QUEST;
|
||||
$in['action'] = WRENCHBOARD_JOB_MRKTINT_QUEST;
|
||||
// $this->load->model('backend_model');
|
||||
$out = array();
|
||||
$out['status'] = '';
|
||||
$res = $this->wrenchboard_api($data, $out);
|
||||
$res = $this->wrenchboard_api($in, $out);
|
||||
// print_r($out);
|
||||
if ($res == PHP_CREATED_OK) {
|
||||
|
||||
//echo rand(100,999)." " .$out['client_id'];
|
||||
echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] ); //'Success - Message sent' . $out['status'];
|
||||
echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] ); //'Success - Message sent' . $out['status'];
|
||||
} else {
|
||||
echo 'Error - ' . $out['status'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user