country list
This commit is contained in:
@@ -497,6 +497,28 @@ class ResultFormatter extends Model
|
||||
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_SIGNUP_COUNTRY:
|
||||
|
||||
$total = $out["total_record"];
|
||||
$res = array(
|
||||
"status" => $out["status"],
|
||||
'result'=>'100',
|
||||
'signup_country'=>[ ['NG', 'Nigeria'],['US', 'United States'] ],
|
||||
"total_record" => ($total - 1),
|
||||
"internal_return" => $out["internal_return"],
|
||||
"result_list" => array(),
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$res["result_list"][] = array(
|
||||
"code" => $out["code_${key}"],
|
||||
"country" => $out["country_${key}"],
|
||||
"phone_code" => $out["phone_code_${key}"],
|
||||
"uid"=> $out["uid_${key}"],
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
case WRENCHBOARD_MOBILE_TASKMESSAGE:
|
||||
|
||||
$total = $out["total_record"];
|
||||
|
||||
Reference in New Issue
Block a user