format message
This commit is contained in:
@@ -119,6 +119,24 @@ class ResultFormatter extends Model
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
case WRENCHBOARD_JOB_MRKTINT_QUEST:
|
||||
$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(
|
||||
"msg_uid" => $out["msg_uid_${key}"],
|
||||
"msg" => $out["msg_${key}"],
|
||||
"added" => $out["added_${key}"],
|
||||
"sender" => $out["sender_${key}"],
|
||||
);
|
||||
}
|
||||
break;
|
||||
case WRENCHBOARD_USER_CARDLIST:
|
||||
$total = $out["total_record"];
|
||||
|
||||
Reference in New Issue
Block a user