From 4a3ddaaff77e9f0e97d4b5badcd9c3629eb872c1 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 2 Aug 2025 15:12:20 -0400 Subject: [PATCH] Joob list back to c code --- wrenchboard/src/shared_tool/site_crons.cc | 4 ++-- www-api/app/Controllers/WrenchJobs.php | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/wrenchboard/src/shared_tool/site_crons.cc b/wrenchboard/src/shared_tool/site_crons.cc index 5e0f14d8..daaca336 100644 --- a/wrenchboard/src/shared_tool/site_crons.cc +++ b/wrenchboard/src/shared_tool/site_crons.cc @@ -696,8 +696,8 @@ long TestNotificationsJobs(CVars in, CVars &out){ push_ret = BkoSendPush( xx, out); //52cee358-759f-42f5-8cfb-d3f77b323c1a - xx["member_uid"] = "52cee358-759f-42f5-8cfb-d3f77b323c1a"; xx["member_uid"].set_valid( true ); - xx["push_text"] = "Notification test system...Toks"; xx["push_text"].set_valid( true ); +// xx["member_uid"] = "52cee358-759f-42f5-8cfb-d3f77b323c1a"; xx["member_uid"].set_valid( true ); +// xx["push_text"] = "Notification test system...Toks"; xx["push_text"].set_valid( true ); push_ret = BkoSendPush( xx, out); } catch (bad_parameter) { logfmt(logINFO, "ERROR CALL long TestNotificationsJobs(CVars in, CVars &out)"); diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index 739f4c8a..40aa1595 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -76,8 +76,15 @@ class WrenchJobs extends BaseController } if ( $countItem == 0 ){ - $local_url = "http://".$this->micro_service_net1.":3033/marketjobs"; - $out = $this->APIcall('GET', $local_url, $in); + + $in["action"] = WRENCHBOARD_ACCOUNT_JOBLIST; + $out=[]; + $ret = $this->wrenchboard->wrenchboard_api($in, $out); + $out['internal_return'] = $ret; + + +// $local_url = "http://".$this->micro_service_net1.":3033/marketjobs"; +// $out = $this->APIcall('GET', $local_url, $in); // dont cache junk if ( is_array($out) && is_array($out["result_list"]) && count($out["result_list"]) > 0){ $this->saveCache($endpoint,$out,30);