country_state
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user