fix
This commit is contained in:
@@ -15,9 +15,9 @@ system:
|
||||
database:
|
||||
{
|
||||
host = "127.0.0.1";
|
||||
name = "savvy";
|
||||
user = "savvy";
|
||||
pass = "savvy001!";
|
||||
name = "jubabox";
|
||||
user = "jubabox";
|
||||
pass = "jubabox001";
|
||||
port = 5432;
|
||||
};
|
||||
|
||||
@@ -28,18 +28,9 @@ mailsend:
|
||||
domain = "chiefsoft.com";
|
||||
user = "savvy@chiefsoft.com";
|
||||
pass = "may12002!";
|
||||
name = "Savvy Demo";
|
||||
name = "Jubabox Beta";
|
||||
};
|
||||
|
||||
mailsendOLD:
|
||||
{
|
||||
from = "support@wrenchboard.com";
|
||||
server = "smtp.gmail.com";
|
||||
domain = "kleenapp.com";
|
||||
user = "support@wrenchboard.com";
|
||||
pass = "may12002!";
|
||||
name = "Kleen Demo Support";
|
||||
};
|
||||
|
||||
stripe:
|
||||
{
|
||||
|
||||
@@ -39,10 +39,21 @@ enum {
|
||||
#define INVOICE_PREVIEW 100
|
||||
#define INVOICE_FINAL 200
|
||||
|
||||
#define USER_START 100000
|
||||
|
||||
|
||||
#define USER_LOGIN 100011
|
||||
|
||||
#define USER_END 199999
|
||||
|
||||
|
||||
|
||||
#define TRNASPORTER 1
|
||||
#define TRANSLATOR 2
|
||||
|
||||
|
||||
|
||||
|
||||
#define MODE_CONFIRM_ASSIGNMENT 100
|
||||
#define MODE_REJECT_ASSIGNMENT 200
|
||||
#define MODE_CANCEL_ASSIGNMENT 210
|
||||
|
||||
@@ -15,6 +15,7 @@ main entry point for API calls Chiefsoft July 2017 */
|
||||
#include "medTEmails.h"
|
||||
#include "medTUpload.h"
|
||||
#include "mobile.h"
|
||||
#include "members.h"
|
||||
|
||||
long jubabox_api_main(CVars in, CVars &out) {
|
||||
logfmt(logINFO, "long jubabox_api_main(CVars in, CVars &out)");
|
||||
@@ -22,14 +23,12 @@ long jubabox_api_main(CVars in, CVars &out) {
|
||||
long action = REQ_LONG(in, "action", 0, -1);
|
||||
REQ_LONG(in, "pid", 0, -1); // global implementation - who is calling
|
||||
try {
|
||||
if (action == MEDTRANS_UPLOADS) {
|
||||
return medtrans_upload(in, out);
|
||||
}
|
||||
if (action == MEDTRANS_DOWNLOAD) {
|
||||
return medtrans_download(in, out);
|
||||
}
|
||||
|
||||
|
||||
if (action >= USER_START && action <= USER_END) {
|
||||
return members_calls(in, out);
|
||||
}
|
||||
|
||||
if (action >= MEDTRANS_BKO_START && action <= MEDTRANS_BKO_END) {
|
||||
return backoffice_calls(in, out);
|
||||
}
|
||||
|
||||
@@ -12,16 +12,25 @@
|
||||
|
||||
/* -- */
|
||||
#include "members.h"
|
||||
#include "function_members.h"
|
||||
|
||||
|
||||
long members_calls(CVars in, CVars &out) {
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
try {
|
||||
|
||||
REQ_LONG(in, "action", 0, -1);
|
||||
long action = REQ_LONG(in, "action", 0, -1);
|
||||
|
||||
switch (action) {
|
||||
case USER_LOGIN:
|
||||
ret = medTMemberLogin(in, out);
|
||||
break;
|
||||
}
|
||||
|
||||
} catch (bad_parameter) {
|
||||
logfmt(logINFO, "ERROR CALL long members_calls(CVars in, CVars &out)");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user