Backend Service
This commit is contained in:
@@ -166,6 +166,34 @@ function processOutJson($in, $out) {
|
||||
|
||||
break;
|
||||
|
||||
case MERMS_USER_REMINDERS:
|
||||
if ( $in["task_mode"] == USER_LOADTASK )
|
||||
{
|
||||
$total = $out["total_record"];
|
||||
$res = array(
|
||||
"status" => $out["status"],
|
||||
"total_record" => ($total),
|
||||
"internal_return" => $out["internal_return"],
|
||||
"result_list" => array(),
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$res["result_list"][] = array(
|
||||
"id" => $out["id_${key}"],
|
||||
"description" => $out["cost_${key}"],
|
||||
"reminder" => $out["reminder_${key}"],
|
||||
"start_date" => $out["start_date_${key}"],
|
||||
"end_date" => $out["end_date_${key}"]
|
||||
|
||||
);
|
||||
} // "request_id"
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
default:
|
||||
return $out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user