assign taskn

This commit is contained in:
CHIEFSOFT\ameye
2024-02-03 17:30:53 -05:00
parent aa22c92ab0
commit cc2afc9cd4
3 changed files with 39 additions and 1 deletions
+2 -1
View File
@@ -1610,6 +1610,7 @@ long WrenchSendJobsOfferGroup(CVars in, CVars &out) {
REQ_LONG(in, "group_id", 1, -1);
//REQ_STRING (in, "email", 1, 59, "(.*)");
REQ_STRING(in, "job_description", 1, 5000, "(.*)");
long bypass = REQ_LONG(in, "bypass", 1, -1);
srand((unsigned) time(NULL));
int r = rand();
@@ -1676,7 +1677,7 @@ long WrenchSendJobsOfferGroup(CVars in, CVars &out) {
logfmt(logINFO, "Price = %lu Balance = %lu", y["price"].Long() * total_member, z["amount"].Long());
if (total_member > 2 ){
if (total_member > 2 && bypass == 0 ){
// REQ_LONG(in, "member_id", 1, -1);
// REQ_LONG(in, "job_id", 1, -1);
// REQ_LONG(in, "group_id", 1, -1);