$query = $_SGLOBAL['db']->query('SELECT * FROM '.tname('members').' WHERE uid=\''.$_SGLOBAL['supe_uid'].'\' AND password=\''.$password.'\'');
改成
$query = $_SGLOBAL['db']->query('SELECT s.*,d.credit FROM '.tname('members').' s, cdb_members d WHERE s.uid=\''.$_SGLOBAL['supe_uid'].'\' AND s.password=\''.$password.'\'');