diff --git a/www/svs/user/constants.php b/www/svs/user/constants.php index e49458d0..19d684b4 100644 --- a/www/svs/user/constants.php +++ b/www/svs/user/constants.php @@ -122,6 +122,7 @@ define('WRENCHBOARD_JOB_OFFER_CONCLUDE',13035); define('WRENCHBOARD_JOB_SEND_QUESTION',13036); define('WRENCHBOARD_JOB_MRKTINT_QUEST',13037); define('WRENCHBOARD_JOB_REPLY_QUESTION',13038); +//define('WRENCHBOARD_JOB_REPLY_QUESTION',13038); //define('WRENCHBOARD_JOB_SEND_QUESTION',13036); diff --git a/www/svs/user/formarter.php b/www/svs/user/formarter.php index dbc3dfd9..7e84885f 100644 --- a/www/svs/user/formarter.php +++ b/www/svs/user/formarter.php @@ -213,7 +213,11 @@ function processOutJson($in, $out) { "msg" => $out["msg_${key}"], "msg_id" => $out["msg_id_${key}"], "msg_date" => $out["msg_date_${key}"], - "msg_from" => $out["msg_from_${key}"] + "msg_from" => $out["msg_from_${key}"], + "reply" => $out["reply_${key}"], + "message_mode" => $out["message_mode_${key}"], + "uid" => $out["uid_${key}"], + "memo" => $out["memo_${key}"] ); } break; diff --git a/www/svs/user/userve.php b/www/svs/user/userve.php index 172963d6..411ec6ac 100644 --- a/www/svs/user/userve.php +++ b/www/svs/user/userve.php @@ -40,6 +40,7 @@ $endpoints = array( 'couponpending' => array('POST'), 'couponredeem' => array('POST'), 'sendinterestmessage' => array('POST'), + 'replyinterestmessage' => array('POST') ); $call_backend = true; // sometimes we need to overwite the call to the extenstion API @@ -102,8 +103,10 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") { } $in["loc"] = $_SERVER["REMOTE_ADDR"]; switch ($endpoint) { + case 'replyinterestmessage': + $in["action"] = WRENCHBOARD_JOB_REPLY_QUESTION; + break; case 'sendinterestmessage': - // $in['offer_code'] = $this->input->get('offer_code'); $in['yourmessage'] = $in["question"]; //$in['member_id'] = $_SESSION['member_id']; // just maing sure