refund return
This commit is contained in:
@@ -160,6 +160,7 @@ long ProcessExpiredOffers(CVars in, CVars &out){
|
|||||||
CVars inR;
|
CVars inR;
|
||||||
CVars outR;
|
CVars outR;
|
||||||
long ret = PHP_API_BAD_PARAM;
|
long ret = PHP_API_BAD_PARAM;
|
||||||
|
long refundReturn = 0;
|
||||||
try {
|
try {
|
||||||
// First stage ; JUST MARK FOR AUTO AND COME BACK
|
// First stage ; JUST MARK FOR AUTO AND COME BACK
|
||||||
out["total_record"] = "0";
|
out["total_record"] = "0";
|
||||||
@@ -201,18 +202,20 @@ long ProcessExpiredOffers(CVars in, CVars &out){
|
|||||||
if (f.empty()) continue;
|
if (f.empty()) continue;
|
||||||
CVars rec;
|
CVars rec;
|
||||||
map_to_cvars(f, rec);
|
map_to_cvars(f, rec);
|
||||||
pgsql_query("UPDATE members_jobs_offer SET refund_status= 2 "
|
pgsql_query("UPDATE members_jobs_offer SET refund_status= 4 "
|
||||||
" WHERE id = %lu AND uid::text = '%s' ", rec["offer_id"].Long(),rec["uid"].c_str()); // move the status so no retry
|
" WHERE id = %lu AND uid::text = '%s' ", rec["offer_id"].Long(),rec["uid"].c_str()); // move the status so no retry
|
||||||
/*
|
|
||||||
inR['offer_code'] = $out[0]['offer_code']; //
|
|
||||||
inR['member_id'] = $out[0]['member_id'];
|
|
||||||
inR['offer_result'] = OFFER_EXPIRE;
|
|
||||||
inR['action'] = WRENCHBOARD_JOB_OFFER_CONCLUDE;
|
|
||||||
|
|
||||||
|
inR["offer_code"] = rec["offer_code"]; inR["offer_code"].set_valid( true );
|
||||||
|
inR["member_id"] = rec["member_id"]; inR["member_id"].set_valid( true );
|
||||||
|
inR["offer_result"] = OFFER_EXPIRE; inR["offer_result"].set_valid( true );
|
||||||
|
inR["action"] = WRENCHBOARD_JOB_OFFER_CONCLUDE; inR["action"].set_valid( true );
|
||||||
|
refundReturn = WrenchConcludeJobsOffer(inR, outR);
|
||||||
|
|
||||||
|
logfmt(logINFO, "Refund Return ********************** ProcessExpiredOffers(CVars in, CVars &out) = %lu",refundReturn);
|
||||||
|
|
||||||
|
pgsql_query("UPDATE members_jobs_offer SET refund_status= 5 "
|
||||||
|
" WHERE id = %lu AND uid::text = '%s' ", rec["offer_id"].Long(),rec["uid"].c_str()); // move the status so no retry
|
||||||
|
|
||||||
//case WRENCHBOARD_JOB_OFFER_CONCLUDE:
|
|
||||||
WrenchConcludeJobsOffer(inR, outR);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user