WrenchMemberMarketMessages
This commit is contained in:
@@ -314,7 +314,7 @@ long WrenchMemberMarketMessages(CVars in, CVars &out) {
|
||||
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
||||
REQ_LONG(in, "page", 1, -1);
|
||||
OPTIONAL(in, "recent") REQ_LONG(in, "recent", 1, -1);
|
||||
REQ_STRING(in, "contract", 5, 25, "(.*)");
|
||||
REQ_STRING(in, "offer_code", 5, 25, "(.*)");
|
||||
|
||||
// this section ;limit recent or not recent
|
||||
if ( in["recent"].Long() == 1 ){
|
||||
@@ -324,7 +324,7 @@ long WrenchMemberMarketMessages(CVars in, CVars &out) {
|
||||
{snprintf(vname, sizeof (vname), " ");
|
||||
}
|
||||
|
||||
snprintf(vname_memo, sizeof (vname_memo), " AND LOWER(TRIM(mm.memo)) = LOWER('%s') ",in["contract"].c_str() );
|
||||
snprintf(vname_memo, sizeof (vname_memo), " AND LOWER(TRIM(mm.memo)) = LOWER('%s') ",in["offer_code"].c_str() );
|
||||
out["total_record"] = "0";
|
||||
|
||||
const PGresult *res;
|
||||
|
||||
Reference in New Issue
Block a user