contacts data

This commit is contained in:
CHIEFSOFT\ameye
2024-11-28 16:07:20 -05:00
parent e5b1bba16a
commit cfe75be26d
2 changed files with 17 additions and 10 deletions
@@ -68,7 +68,7 @@ Dear <b>{{firstname}}</b>,
</tr>
<tr>
<td class="bodycopy" style="padding-bottom:10px;">
&nbsp;&nbsp; <span style="color:darkgreen; font-weight:bolder;">{{send_firstname}} {{send_lastname}} </span> invites you to explore <a href="{{server_name}}/invite?refer_link={{refer_link}}">{{site_name}}!</a>. Unlock the power of your skills and social networks—start earning today!"
&nbsp;&nbsp; <span style="color:darkgreen; font-weight:bolder;">{{send_firstname}} {{send_lastname}} </span> invites you to explore <a href="{{server_name}}/invite?refer_link={{refer_link}}">{{site_name}}!</a>. Unlock the power of your skills and social networks. Start earning today!
</td>
</tr>
<tr>
+16 -9
View File
@@ -36,37 +36,44 @@ class WrenchUserContacts extends BaseController
if (isset($in["uid"]) && $in["uid"] !='' ){
$in["member_uid"]=$in["uid"];
}
$member_uid = str_replace("-", "_", $in["uid"]);
$time_to_save = false;
$endpoint = "CONTACTS_IMPORT_ACTION-". $in["uid"];
$endpoint = "CONTACTS_IMPORT_ACTION-". $member_uid;
$outC = $this->getCache($endpoint); // try find in cache
if ( $in["mmode"] == 0 ){
$this->deleteCache($endpoint);
$this->saveCache($endpoint,$in,1300);
$this->saveCache($endpoint,$in,5300);
}
else
{
$outC = $this->getCache($endpoint); // try find in cache
$outArr = $outC; // unserialize( $outC );
log_message('critical', "CACHE READ ***** WrenchUserContacts::usersContacts() ----**> ".$outArr["raw_contacts"]);
$in["raw_contacts"] = $in["raw_contacts"].$outC["raw_contacts"];
$in["raw_contacts"] =$outC["raw_contacts"].$in["raw_contacts"]; // expand raw contents
// log_message('critical', "Merged Raw Contents ".$outArr["raw_contacts"]);
$this->deleteCache($endpoint);
$this->saveCache($endpoint,$in,5300);
/*
Determine if this is the last
Fire process events
save to the backend database;
*/
if ($in["csize"] + $in["mmode"] >= $in["pcount"]){
$time_to_save = true;
}
// if ($in["csize"] + $in["mmode"] >= $in["pcount"]){
// $time_to_save = true;
// }
}
if ($in["csize"] + $in["mmode"] >= $in["pcount"]){
$time_to_save = true;
}
///=== cache game gere
if($time_to_save){
$in["raw_contacts"] = serialize($in['raw_contacts']);
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
// $ret = $this->wrenchboard->wrenchboard_api($in, $out);
// $out['internal_return'] = $ret;
}
else{
$out["status_msg"] = "Received and cached";