country list

This commit is contained in:
CHIEFSOFT\ameye
2023-12-17 07:54:30 -05:00
parent ecac9d0300
commit aac0a65c50
7 changed files with 92 additions and 4 deletions
+1
View File
@@ -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;
+2 -1
View File
@@ -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();
+22
View File
@@ -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"];