country list
This commit is contained in:
@@ -145,6 +145,7 @@ define('CONTRACT_REQUEST_TIMELINE', 2);
|
||||
define('CONTRACT_ACCEPT_COMPLETE', 5);
|
||||
define('CONTRACT_REJECT_COMPLETE', 1);
|
||||
|
||||
const WRENCHBOARD_SIGNUP_COUNTRY = 648;
|
||||
const WRENCHBOARD_GET_MEDIA = 650;
|
||||
const WRENCHBOARD_SAVE_MEDIA = 652;
|
||||
|
||||
|
||||
@@ -248,6 +248,7 @@ class WrenchApi extends BaseController
|
||||
$in["action"] = WRENCHBOARD_COUPON_MEMLIST;
|
||||
break;
|
||||
case 'signupcountry':
|
||||
$in["action"] = WRENCHBOARD_SIGNUP_COUNTRY;
|
||||
// checi if in cache if not read
|
||||
$local_out = [
|
||||
'result'=>'100',
|
||||
@@ -256,7 +257,7 @@ class WrenchApi extends BaseController
|
||||
['US', 'United States']
|
||||
]
|
||||
];
|
||||
$call_backend = false;
|
||||
// $call_backend = true; we will call backend
|
||||
break;
|
||||
case 'blogitem':
|
||||
$blogData = (new \App\Models\ResultFormatter() )->getBlogItem();
|
||||
|
||||
@@ -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