family task formrter
This commit is contained in:
@@ -82,7 +82,27 @@ class ResultFormatter extends Model
|
||||
|
||||
// id AS coupon_id, ca.code, ca.amount, ca.added::date,ca.status
|
||||
switch ($in["action"]) {
|
||||
|
||||
case WRENCHBOARD_FAMILY_SAMPLETASKS:
|
||||
$total = $out["total_record"];
|
||||
$res = array(
|
||||
"status" => $out["status"],
|
||||
"total_record" => ($total - 1),
|
||||
"internal_return" => $out["internal_return"],
|
||||
"result_list" => array(),
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$res["result_list"][] = array(
|
||||
"uid" => $out["uid_${key}"],
|
||||
"description" => $out["description_${key}"],
|
||||
"title" => $out["title_${key}"],
|
||||
"added" => $out["added_${key}"],
|
||||
"age" => $out["age_${key}"],
|
||||
"banner" => $out["banner_${key}"],
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_JOB_OFFER_INTLIST:
|
||||
case WRENCHBOARD_JOB_WAITING_INT:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user