Backend Service

This commit is contained in:
2019-03-14 01:48:00 +00:00
parent 100aef6763
commit 4522319a38
3 changed files with 115 additions and 1 deletions
+8 -1
View File
@@ -13,6 +13,9 @@
#include <algorithm>
#include <cctype>
#include <locale>
/*
#include <stdio.h>
#include <stdlib.h>
@@ -21,7 +24,7 @@
/* -- */
#include "function_members.h"
#include "common_tool.h"
long MemberLogin(CVars in, CVars &out) {
long ret = PHP_API_BAD_PARAM;
@@ -40,6 +43,10 @@ long MemberLogin(CVars in, CVars &out) {
if (MemberSessionCheck(out["member_id"].Long(), out["sessionid"].c_str(), 1) > 0) {
out["acc_link"] = "ME345FT6789";
char acc_link[11];
// GetMemberAccountLink(out["member_id"].Long(),acc_link, sizeof (acc_link) );
// out["acc_link"] = acc_link;
out["stauts"] = "OK";
/*LOAD THE SESSION INTO OUT now */
load_db_record(out, "SELECT session FROM members_session WHERE member_id=%lu ORDER BY id DESC LIMIT 1", out["member_id"].Long());