From 23457f36cc1c32a535b6c4a54eaae5224d3f8311 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 9 May 2023 12:02:42 -0400 Subject: [PATCH] Falily detail --- www-api/app/Config/Routes.php | 3 ++- www-api/app/Controllers/WrenchApi.php | 1 + www-api/app/Models/ResultFormatter.php | 4 +++- www-api/public/svs/user/formarter.php | 4 +++- www-api/public/svs/user/userve.php | 1 + 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index c4bbbf7f..f8a9aa0e 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -73,8 +73,9 @@ $routes->post('/en/wrench/api/v1/stepresetpass', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/starttopup', 'WrenchApi::apigate'); +$routes->post('/en/wrench/api/v1/jobmanageragree', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/jobmanagerlist', 'WrenchApi::apigate'); -$routes->post('/en/wrench/api/v1/jobmanageroffers', 'WrenchApi::apigate'); +$routes->post('/en/wrench/api/v1/jobmanageroffers', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familyadd', 'WrenchApi::apigate'); diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index 2061bfb9..98672f88 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -79,6 +79,7 @@ class WrenchApi extends BaseController 'sendreferral' => ['POST'], 'refferhx' => ['POST'], 'accounttypes' => ['POST'], + 'jobmanageragree' => ['POST'], 'jobmanagerlist' => ['POST'], 'jobmanageroffers'=> ['POST'], 'profilepasschange' => ['POST'], diff --git a/www-api/app/Models/ResultFormatter.php b/www-api/app/Models/ResultFormatter.php index d2042df4..a1c6ca27 100644 --- a/www-api/app/Models/ResultFormatter.php +++ b/www-api/app/Models/ResultFormatter.php @@ -97,7 +97,9 @@ class ResultFormatter extends Model "uid" => $out["uid_${key}"], "firstname" => $out["firstname_${key}"], "lastname" => $out["lastname_${key}"], - "age" => $out["age_${key}"] + "age" => $out["age_${key}"], + "last_login" => '10-10-2024', + "task_count" => rand(0,20) ); } diff --git a/www-api/public/svs/user/formarter.php b/www-api/public/svs/user/formarter.php index 3b670d3c..f45823a1 100755 --- a/www-api/public/svs/user/formarter.php +++ b/www-api/public/svs/user/formarter.php @@ -91,7 +91,9 @@ function processOutJson($in, $out) { "uid" => $out["uid_${key}"], "firstname" => $out["firstname_${key}"], "lastname" => $out["lastname_${key}"], - "age" => $out["age_${key}"] + "age" => $out["age_${key}"], + "last_login" => '10-10-2024', + "task_count" => rand(0,20) ); } diff --git a/www-api/public/svs/user/userve.php b/www-api/public/svs/user/userve.php index 3539c71f..1063ad3e 100755 --- a/www-api/public/svs/user/userve.php +++ b/www-api/public/svs/user/userve.php @@ -58,6 +58,7 @@ $endpoints = array( 'sendreferral' => array('POST'), 'refferhx' => array('POST'), 'accounttypes' => array('POST'), + 'jobmanageragree' => array('POST'), 'jobmanagerlist' => array('POST'), 'jobmanageroffers'=> array('POST'), 'profilepasschange' => array('POST'),