History
This commit is contained in:
@@ -647,6 +647,7 @@ class WrenchApi extends BaseController
|
||||
$final_out["language"] = "en";
|
||||
$final_out["ip_loc"] = $ip_loc;
|
||||
$final_out["family_types"] = $this->familyTypes();
|
||||
$final_out["history_types"] = $this->historyTypes();
|
||||
//return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
|
||||
return json_encode( $final_out );
|
||||
}
|
||||
@@ -658,5 +659,10 @@ class WrenchApi extends BaseController
|
||||
array("ty"=>"Others", "id"=>"Others", "tag"=>"fam_type_others")
|
||||
];
|
||||
}
|
||||
private function historyTypes(){
|
||||
return [
|
||||
array("ty"=>"Completed Jobs", "id"=>"COMPLETED_JOBS", "tag"=>"hist_type_completed_jobs"),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -386,6 +386,7 @@ class ResultFormatter extends Model
|
||||
"status" => $out["status"],
|
||||
"total_record" => ($total - 1),
|
||||
"internal_return" => $out["internal_return"],
|
||||
"family_action" => 0,
|
||||
"result_list" => array(),
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
|
||||
Reference in New Issue
Block a user