link parts

This commit is contained in:
CHIEFSOFT\ameye
2024-12-02 09:43:44 -05:00
parent 185d61102e
commit e592aa9f6e
2 changed files with 26 additions and 5 deletions
+20 -1
View File
@@ -132,6 +132,7 @@ long WrenchImportContacts(CVars in, CVars &out);
long WrenchRequestVirtualCard(CVars in, CVars &out);
long WrenchRequestFamilyVirtualCard(CVars in, CVars &out);
long WrenchLoadReferLink(CVars in, CVars &out);
long WrenchResendMyReferLink(CVars in, CVars &out);
long account_calls(CVars in, CVars &out) {
logfmt(logINFO, "account_calls()");
@@ -494,7 +495,7 @@ long account_calls(CVars in, CVars &out) {
break;
case WRENCHBOARD_MYREFLINK:
// return WrenchMyFilesList(in, out);
return WrenchResendMyReferLink(in, out);
break;
case WRENCHBOARD_ACCOUNT_PREFERENCES:
@@ -532,6 +533,24 @@ long account_calls(CVars in, CVars &out) {
#define PHP_API_TRANSFER_COMPLETE 200
long WrenchResendMyReferLink(CVars in, CVars &out) {
logfmt(logINFO, "WrenchMyPageIntro()");
long ret = PHP_API_BAD_PARAM;
const PGresult *res;
char buf[1500];
CVars x;
try {
REQ_STRING(in, "uid_part", 5, 15, "(.*)");
long member_id = REQ_LONG(in, "member_id", 1, -1);
} catch (bad_parameter) {
out["status"] = "ERROR";
}
return ret;
}
long WrenchLoadReferLink(CVars in, CVars &out) {
logfmt(logINFO, "WrenchMyPageIntro()");
long ret = PHP_API_BAD_PARAM;