status txt
This commit is contained in:
@@ -77,6 +77,12 @@ class ResultFormatter extends Model
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
private function suggestedStatusText($status){
|
||||
$stArr = ['0 Status','Waiting','2 Status', '3 Status', '4 Status', '5 Status' ];
|
||||
return $stArr[$status];
|
||||
}
|
||||
|
||||
public function processOutJson($in, $out) {
|
||||
|
||||
|
||||
@@ -93,6 +99,8 @@ class ResultFormatter extends Model
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$status_no = $out["status_${key}"];
|
||||
$statusTxt = $this->suggestedStatusText($status_no);
|
||||
$res["result_list"][] = array(
|
||||
"uid" => $out["uid_${key}"],
|
||||
"family_uid" => $out["family_uid_${key}"],
|
||||
@@ -100,6 +108,7 @@ class ResultFormatter extends Model
|
||||
"title" => $out["title_${key}"],
|
||||
"added" => $out["added_${key}"],
|
||||
"status" => $out["status_${key}"],
|
||||
"status_text" => $statusTxt ,
|
||||
"banner" => $out["banner_${key}"],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user