Multiple decalrations

This commit is contained in:
CHIEFSOFT\ameye
2023-07-31 20:33:39 -04:00
parent b911ab052d
commit 73cc6b97d2
+11 -73
View File
@@ -24,19 +24,18 @@
#define RECOMMEND_OFFERS 1020
//========================
*/
long sendOffersRecommendation( CVars in, CVars &out);
long sendCouponRecommendation( CVars in, CVars &out);
long RecoCheckOffers( int itm_count, CVars in, CVars &out );
long RecoCheckFamilyLogin( int itm_count, CVars in, CVars &out );
long RecoCheckFamilyCount( int itm_count, CVars in, CVars &out );
long RecoCheckCoupons( int itm_count, CVars in, CVars &out );
long RecoCheckTaskDue( int itm_count, CVars in, CVars &out );
long RecoCheckTaskReview( int itm_count, CVars in, CVars &out );
long RecoCheckBlog( int itm_count, CVars in, CVars &out );
long RecoOffersInterest( int itm_count, CVars in, CVars &out );
long RecoReferAFreind(int itm_count, CVars in, CVars &out );
long RecoPendingInterestCount( int itm_count, CVars in, CVars &out );
//long RecoCheckOffers( int itm_count, CVars in, CVars &out );
//long RecoCheckFamilyLogin( int itm_count, CVars in, CVars &out );
//long RecoCheckFamilyCount( int itm_count, CVars in, CVars &out );
//long RecoCheckCoupons( int itm_count, CVars in, CVars &out );
//long RecoCheckTaskDue( int itm_count, CVars in, CVars &out );
//long RecoCheckTaskReview( int itm_count, CVars in, CVars &out );
//long RecoCheckBlog( int itm_count, CVars in, CVars &out );
//long RecoOffersInterest( int itm_count, CVars in, CVars &out );
//long RecoReferAFreind(int itm_count, CVars in, CVars &out );
//long RecoPendingInterestCount( int itm_count, CVars in, CVars &out );
@@ -705,68 +704,7 @@ long RecoCheckBlog( int itm_count, CVars in, CVars &out ){
}
long sendOffersRecommendation( CVars in, CVars &out){
try{
long member_id = REQ_LONG(in, "member_id", 1, -1);
REQ_LONG(in, "offer_id", 1, -1);
if ( load_db_record(out, "SELECT client_id FROM members_jobs_offer WHERE id=%lu", in["offer_id"].Long())> 0){
CVars xx;
CVars xout;
xx["action"] = WRENCHBOARD_CARDS_CREATECARD; xx["action"].set_valid( true );
xx["member_id"] = out["client_id"]; xx["member_id"].set_valid( true ); // the card is going to job recipient
xx["title"] = "New job offer"; xx["title"].set_valid( true );
xx["description"] = "You have received a new Task/Job offer"; xx["description"].set_valid( true );
xx["card_type"] = "OFFERS"; xx["card_type"].set_valid( true );
xx["card_style"] = "card2"; xx["card_style"].set_valid( true );
xx["card_icon"] = "icon1"; xx["card_icon"].set_valid( true );
xx["offer_id"] = in["offer_id"]; xx["offer_id"].set_valid( true );
xx["blog_id"] = "0"; xx["blog_id"].set_valid( true );
card_calls(xx, xout);
}
} catch (bad_parameter) {
logfmt(logINFO, "ERROR CALL long sendCouponRecommendation");
}
return 0;
}
long sendCouponRecommendation( CVars in, CVars &out){
/*
CVars xx;
xx["member_id"] = in["member_id"]; xx["member_id"].set_valid(true);
xx["code"] = rec["code"]; xx["code"].set_valid(true);
xx["amount"] = rec["amount"]; xx["amount"].set_valid(true);
xx["status"] = COUPON_ACTIVE; xx["status"].set_valid(true);
coupon_id = insert_db_record(DBS_VALID, "coupons_allocation", "coupons_allocation_id_seq", xx);
['title'=>'This is your coupon',
'description'=>'This is the description of the description',
'card_type'=>'COUPON',
'card_style' =>'card1',
'card_icon' =>'icon1',
'assign_id'=> 0,
*/
try{
long member_id = REQ_LONG(in, "member_id", 1, -1);
REQ_LONG(in, "coupon_id", 1, -1);
CVars xx;
CVars xout;
xx["action"] = WRENCHBOARD_CARDS_CREATECARD; xx["action"].set_valid( true );
xx["member_id"] = member_id; xx["member_id"].set_valid( true );
xx["title"] = "This is your coupon"; xx["title"].set_valid( true );
xx["description"] = "Click to redeem your coupon to your account"; xx["description"].set_valid( true );
xx["card_type"] = "COUPON"; xx["card_type"].set_valid( true );
xx["card_style"] = "card1"; xx["card_style"].set_valid( true );
xx["card_icon"] = "icon1"; xx["card_icon"].set_valid( true );
xx["blog_id"] = "0"; xx["blog_id"].set_valid( true );
xx["offer_id"] = "0"; xx["offer_id"].set_valid( true );
card_calls(xx, xout);
} catch (bad_parameter) {
logfmt(logINFO, "ERROR CALL long sendCouponRecommendation");
}
return 0;
}