transaction side

This commit is contained in:
CHIEFSOFT\ameye
2025-07-11 19:39:01 -04:00
parent acf2362961
commit 2883c877e8
2 changed files with 20 additions and 23 deletions
+10 -16
View File
@@ -4,7 +4,7 @@ Subject: {{site_name}} - Log in Confirmation
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<title>{{site_name}} - Log in Confirmation</title>
<style type="text/css">
body {margin: 0; padding: 0; min-width: 100%!important;}
@@ -16,7 +16,7 @@ img {height: auto;}
.subhead {font-size: 12px; color: #ffffff; font-family: sans-serif; letter-spacing: 3px;}
.h1, .h2, .bodycopy {color: #153643; font-family: sans-serif;}
.h1 {font-size: 33px; line-height: 38px; font-weight: bold;}
.bodycopy {font-size: 14px; line-height: 20px;}
.bodycopy {font-size: 16px; line-height: 25px;}
.button {text-align: center; font-size: 16px; font-family: sans-serif; font-weight: bold; padding: 0 30px 0 30px;}
.button a {color: #ffffff; text-decoration: none;}
.footer {padding: 20px 30px 15px 30px; bgcolor:#007bff; background-color:#007bff;}
@@ -33,7 +33,7 @@ img {height: auto;}
<table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<![endif]-->
<![endif]-->
<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#c7d8a7" class="header">
@@ -42,7 +42,7 @@ img {height: auto;}
<tr>
<td>
<![endif]-->
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 600px;">
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 600px;">
<tr>
<td height="30" border="0" style="text-align:center;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
@@ -76,15 +76,16 @@ img {height: auto;}
<tr>
<td>
<![endif]-->
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<tr>
<td class="bodycopy">
Hello {{firstname}},
Hello <b>{{firstname}}</b>,
<br />
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<table width="100%" border="0" cellspacing="2" cellpadding="5">
<tr>
<td class="bodycopy">
Please be informed that you logged on to {{site_name}} account at <b>{{last_login2}}</b>.
@@ -123,14 +124,7 @@ For all support, contact us at <a href="{{server_name}}/contact">{{server_name}
<tr>
<td class="bodycopy">
<br>
Recently added task(s)
<table border="0" width='100%;' id="table1" style="font-family: Trebuchet MS; font-size: 10pt ">
{{\inv_items}}
{{...}}
{{pin}}
{{/...}}
{{/inv_items}}
</table>
</td>
</tr>
</td></tr>
@@ -177,4 +171,4 @@ You received this email because you subscribe to {{site_name}}. If you get this
</tr>
</table>
</body>
</html>
</html>
+10 -7
View File
@@ -2,9 +2,11 @@
namespace App\Controllers;
use CodeIgniter\API\ResponseTrait;
class WrenchTransactions extends BaseController
{
use ResponseTrait;
public function apigate(){
log_message('critical', "WrenchTransactions-Gate");
header('Access-Control-Allow-Origin: *');
@@ -96,8 +98,8 @@ class WrenchTransactions extends BaseController
if ( $call_backend == true && $in["action"] !='' ){
log_message('critical', "WrenchTransactions-Gate 007 ->".$endpoint);
$wrenchboard = new \App\Models\BackendModel();
$ret = $wrenchboard->wrenchboard_api($in, $out);
//$wrenchboard = new \App\Models\BackendModel();
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
}
else
@@ -105,10 +107,11 @@ class WrenchTransactions extends BaseController
$out = $local_out;
}
$this->doCacheStep($in, $out);
return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
return $this->response->setJson($response);
// $this->doCacheStep($in, $out);
// return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
// $result_response = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
// return $this->response->setJson($result_response);
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
private function rawDataToInData($in){