check value
This commit is contained in:
@@ -28,9 +28,23 @@ class WrenchJobs extends BaseController
|
||||
$out['internal_return'] = 0; // just backwad comaptobility
|
||||
log_message('critical', "***** ***** WrenchJobs::verifyCompletedHx Cache Done:::Ret ");
|
||||
}
|
||||
$out["checked_value"] = $this->CheckUidInCompletedHx($in["offer_depend_uid"], $out['result_list']); // test the value now
|
||||
log_message('critical', "***** ***** WrenchJobs::verifyCompletedHx Ret ");
|
||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
}
|
||||
|
||||
private function CheckUidInCompletedHx($offer_depend_uid, $resArr) : bool {
|
||||
$ret = false;
|
||||
if ( !is_array(($resArr))) return $ret;
|
||||
|
||||
foreach ($resArr as $key => $value) {
|
||||
// $arr[3] will be updated with each value from $arr...
|
||||
echo "{$key} => {$value} ";
|
||||
log_message('critical', "***** WrenchJobs::CheckUidInCompletedHx $offer_depend_uid ".$value["job_uid"]);
|
||||
if ($offer_depend_uid==$value["job_uid"]) $ret = true;
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
public function getJobsData() {
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
|
||||
Reference in New Issue
Block a user