load page

This commit is contained in:
CHIEFSOFT\ameye
2024-01-09 11:59:18 -05:00
parent 224ca8fad8
commit 85dd3fe301
+3 -4
View File
@@ -520,8 +520,6 @@ long WrenchMyPage(CVars in, CVars &out) {
try {
REQ_LONG(in, "member_id", 1, -1);
REQ_STRING(in, "uid", 3, 150, "(.*)");
REQ_STRING(in, "intro", 3, 150, "(.*)");
REQ_STRING(in, "description", 3, 150, "(.*)");
x["intro"] = in["intro"];
x["intro"].set_valid(true);
@@ -531,10 +529,11 @@ long WrenchMyPage(CVars in, CVars &out) {
if ( load_db_record(out, "SELECT d.id AS detail_id,d.* FROM members_detail d "
"LEFT JOIN members m ON m.id =d.member_id "
"WHERE d.member_id=%lu AND m.uid='%s' AND active = 1 ", in["member_id"].Long(), in["uid"].c_str()) > 0){
ret = PHP_API_OK;
}
else{
ret = PHP_API_OK;
out["intro"] = "";
out["description"] = "";
}
} catch (bad_parameter) {