This commit is contained in:
2022-04-24 10:53:27 -04:00
parent a1eac4a91f
commit 886379b0f7
2 changed files with 120 additions and 76 deletions
+9 -8
View File
@@ -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'];
}