country_state

This commit is contained in:
CHIEFSOFT\ameye
2024-10-17 14:27:02 -04:00
parent 1dc7402c8f
commit 24c48d787b
+9 -3
View File
@@ -768,10 +768,16 @@ class WrenchResources extends BaseController
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
$outx = [];
$in["action"] = -1; //
$out["country_state"]['US'] = $this->usStates();
$out["country_state"]['NG'] = $this->ngStates();
$out["country_state"]['CA'] = $this->caStates();
$outx["country_state"]['US'] = $this->usStates();
$outx["country_state"]['NG'] = $this->ngStates();
$outx["country_state"]['CA'] = $this->caStates();
if ( $in["country"] !=''){
if (isset($outx["country_state"][$in["country"]])){
$out["country_state"] = $outx["country_state"][$in["country"]];
}
}
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
}
private function usStates()