new offer expire
This commit is contained in:
@@ -166,7 +166,7 @@ long ProcessExpiredOffers(CVars in, CVars &out){
|
|||||||
out["total_record"] = "0";
|
out["total_record"] = "0";
|
||||||
const PGresult *res;
|
const PGresult *res;
|
||||||
res = pgsql_query("SELECT status,member_id, id AS offer_id, uid,offer_code FROM members_jobs_offer "
|
res = pgsql_query("SELECT status,member_id, id AS offer_id, uid,offer_code FROM members_jobs_offer "
|
||||||
" WHERE expire< now() "
|
" WHERE expire < ( now() - interval '120 minutes' ) "
|
||||||
" AND status = 1 "
|
" AND status = 1 "
|
||||||
" AND refund_auto IS NULL "
|
" AND refund_auto IS NULL "
|
||||||
" AND payment_id IS NOT NULL "
|
" AND payment_id IS NOT NULL "
|
||||||
|
|||||||
@@ -57,8 +57,13 @@ class WrenchBlog extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($blog_id > 0 ){
|
if ($blog_id > 0 ){
|
||||||
$rawData = $this->apiData($blog_id);
|
$endpoint = "WRENCH_ONE_BLOG_DATA-".$blog_id;
|
||||||
$res1= $rawData['payload']; //[0]['payload'];
|
$res1 = $this->getCache($endpoint);
|
||||||
|
if (count($res1)==0){
|
||||||
|
$rawData = $this->apiData($blog_id);
|
||||||
|
$res1= $rawData['payload']; //[0]['payload'];
|
||||||
|
$this->saveCache($endpoint,$res1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$endpoint = "WRENCH_BLOG_DATA";
|
$endpoint = "WRENCH_BLOG_DATA";
|
||||||
|
|||||||
Reference in New Issue
Block a user