Backend Service
This commit is contained in:
@@ -423,10 +423,10 @@ return ret;
|
||||
|
||||
long setMemberReminders(CVars in, CVars &out) {
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
logfmt(logINFO, "CreateMember()");
|
||||
logfmt(logINFO, "setMemberReminders()");
|
||||
|
||||
try {
|
||||
|
||||
out = in;
|
||||
REQ_LONG(in, "member_id", 0, -1);
|
||||
REQ_LONG(in, "practice_id", 0, -1);
|
||||
REQ_LONG(in, "encounter_id", 0, -1);
|
||||
@@ -466,14 +466,16 @@ long setMemberReminders(CVars in, CVars &out) {
|
||||
|
||||
out["member_reminder_id"] = insert_db_record(DBS_VALID, "members_reminders", "members_reminders_id_seq", x);
|
||||
if (out["member_reminder_id"].Long() > 0) {
|
||||
//---emailbad member_email_calls(MERMS_USER_CREATEACCOUNT, out, out);
|
||||
//---emailbad member_email_calls(MERMS_USER_CREATEACCOUNT, out, out);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} catch (bad_parameter) {
|
||||
logfmt(logINFO, "ERROR CALL CreateMember");
|
||||
logfmt(logINFO, "ERROR CALL setMemberReminders");
|
||||
}
|
||||
logfmt(logINFO, "/CreateMember()");
|
||||
logfmt(logINFO, "/setMemberReminders()");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +155,6 @@ switch ( $in["action"] ) {
|
||||
// configure
|
||||
// update
|
||||
// delete/stop
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -179,10 +178,9 @@ function flatten($data, $parentkey = "") {
|
||||
return $result;
|
||||
}
|
||||
|
||||
function processOutJson($in, $out) {
|
||||
function processOutJson($in, &$out) {
|
||||
|
||||
switch ($in["action"]) {
|
||||
|
||||
|
||||
case MERMS_USER_PRACTICES:
|
||||
if ( $in["task_mode"] == MODE_GETVALUE )
|
||||
{
|
||||
@@ -231,6 +229,7 @@ function processOutJson($in, $out) {
|
||||
} // "request_id"
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
||||
@@ -239,7 +238,7 @@ function processOutJson($in, $out) {
|
||||
default:
|
||||
return $out;
|
||||
}
|
||||
|
||||
|
||||
return $res;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user