diff --git a/wrenchboard/src/shared_tool/coupons.cc b/wrenchboard/src/shared_tool/coupons.cc index b7529921..241d23e9 100644 --- a/wrenchboard/src/shared_tool/coupons.cc +++ b/wrenchboard/src/shared_tool/coupons.cc @@ -163,6 +163,15 @@ CREATE TABLE coupons_allocation ( // send allocation email coupon_email(WRENCHBOARD_COUPON_ACTIVATE, inx, out); recommendation_engine(RECOMMEND_COUPON , inx, out); // trigger the card interaction in apps + + CVars xy; + if ( load_db_record(xy, "SELECT id AS member_id, uid AS member_uid, 'message.svg' AS icon " + " FROM members WHERE id = %lu ",in["member_id"].Long()) > 0 ){ + xy["msg"] = "You have received a free coupon !!!"; + xy["msg"].set_valid(true); + plan_notification(xy, out); + } + }