soap_getuserlistbyuserids.php
来自「一个通用的php网站的会员系统和通行证系统」· PHP 代码 · 共 29 行
PHP
29 行
<?php
import("com.member.biz.Auth");
function SOAP_GetUserListByUserIDs(&$soap, &$params)
{
global $db,$table;
$return = array();
$result = $db->Execute("SELECT u.*,g.* FROM $table->user u,$table->group g where u.GroupID=g.GroupID AND u.UserID IN(".$params['UserIDs'].") ");
while(!$result->EOF) {
$return[$result->fields['UserID']] = $result->fields;
$result->MoveNext();
}
if($result) {
$soap->Response_hRet = SOAP_OK;
$soap->Response_FeatureStr = "success";
$soap->setEncode(false);
$soap->addResponseElement("List", serialize($return));
return true;
} else {
$soap->Response_hRet = SOAP_LOGIC_ERROR;
$soap->Response_FeatureStr = "nothing";
return false;
}
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?