Changeset 3284869
- Timestamp:
- 04/30/2025 12:23:52 PM (10 months ago)
- Location:
- appexperts/trunk
- Files:
-
- 3 added
- 7 edited
-
.idea (added)
-
.idea/modules.xml (added)
-
.idea/trunk.iml (added)
-
includes/features/notification/helpers/app-expert-fcm-helper.php (modified) (3 diffs)
-
includes/init/common/app-expert-route.php (modified) (1 diff)
-
includes/integrations/contact-form-7/app-expert-contact-form-7-init.php (modified) (1 diff)
-
includes/integrations/peepso-messages/app-expert-peepso-chat-init.php (modified) (1 diff)
-
includes/integrations/sitepress-multilingual-cms/app-expert-sitepress-multilingual-cms-init.php (modified) (1 diff)
-
includes/integrations/yith-woocommerce-wishlist/app-expert-yith-woocommerce-wishlist-init.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
appexperts/trunk/includes/features/notification/helpers/app-expert-fcm-helper.php
r3283430 r3284869 10 10 $baseUrl = "https://iid.googleapis.com/iid/v1:$curl"; 11 11 12 $log=[ 13 "baseUrl"=>$baseUrl, 14 "operation"=>$curl, 15 "topic"=>$topic, 16 "userToken"=>$userToken 17 ]; 12 18 13 $mypush = array( 19 14 "to"=>"/topics/$topic", … … 95 90 $response = curl_exec($ch); 96 91 //Close request 97 $log=[$response,$json,$headers,$arrayToSend];98 92 if ($response === FALSE) { 99 $log[]= 'FCM Send Error: ' . curl_error($ch);100 93 } else { 101 94 $res_arr = json_decode($response, true); 102 $log[]=$res_arr;103 95 if (isset($res_arr['message_id']) && $res_arr['message_id']) { 104 96 $success = true; … … 107 99 } 108 100 } 109 // $data= get_option('_as_send_log',true);110 // if(!is_array($data)) $data=[];111 // $data[]=$log;112 // update_option("_as_send_log",$data);113 // App_Expert_Logger::info("push notification :",["Data"=>$log]);114 101 curl_close($ch); 115 102 return $success; -
appexperts/trunk/includes/init/common/app-expert-route.php
r3283430 r3284869 36 36 37 37 $validation_class=new $validator($request); 38 $logs_data=[ 39 "request"=>$request->get_params(), 40 "request_files"=>$request->get_file_params(), 41 "request_headers"=>$request->get_headers(), 42 "request_"=>$request->get_content_type(), 43 ]; 38 44 39 if($validation_class->validate()){ 45 40 $response= (new $call_back_class())->$call_back_method($request); 46 $logs_data["response"]=$response;47 //App_Expert_Logger::info("Api Call {$request->get_route()} : success",$logs_data);48 41 return $response; 49 42 } 50 43 $error = $validation_class->getErrors(); 51 $logs_data["errors"]=$error;52 //App_Expert_Logger::error("Api Call {$request->get_route()} : Validation Errors",$logs_data);53 44 return count($error)?$error[0]:new WP_Error("something_went_wrong","error from App_Expert_Routes:add",[]); 54 45 }catch (Exception $e){ 55 $logs_data["exception"]=$e->getMessage();56 //App_Expert_Logger::fatal("Api Call {$request->get_route()} : Exception",$logs_data);57 46 return App_Expert_Response::fail("something_went_wrong",$e->getMessage(),[]); 58 47 } -
appexperts/trunk/includes/integrations/contact-form-7/app-expert-contact-form-7-init.php
r2987398 r3284869 20 20 21 21 public function add_logs($arr){ 22 $arr[] ='contact-form-7';22 // Removed logging functionality 23 23 return $arr; 24 24 } -
appexperts/trunk/includes/integrations/peepso-messages/app-expert-peepso-chat-init.php
r2987398 r3284869 39 39 public function add_logs($arr) 40 40 { 41 return [ 42 'peepso-core/peepso.php', 43 'peepso-messages/peepsomessages.php' 44 ]; 41 // Removed logging functionality 42 return $arr; 45 43 } 46 44 public function is_classes_dependencies(){ -
appexperts/trunk/includes/integrations/sitepress-multilingual-cms/app-expert-sitepress-multilingual-cms-init.php
r2987398 r3284869 26 26 public function add_logs($arr) 27 27 { 28 $arr[] ='sitepress-multilingual-cms';28 // Removed logging functionality 29 29 return $arr; 30 30 } -
appexperts/trunk/includes/integrations/yith-woocommerce-wishlist/app-expert-yith-woocommerce-wishlist-init.php
r2987398 r3284869 25 25 public function add_logs($arr) 26 26 { 27 $arr[] ='yith-woocommerce-wishlist';27 // Removed logging functionality 28 28 return $arr; 29 29 } -
appexperts/trunk/readme.txt
r3283430 r3284869 120 120 == Changelog == 121 121 122 = 1.4.5 2025-04- 28=122 = 1.4.5 2025-04-30 = 123 123 * Fix - Minor Bug Fixes & Improvements 124 124
Note: See TracChangeset
for help on using the changeset viewer.