function kaixinUser() { $tblUser = new DB_Sso_User(); $user = $tblUser->fetchAll("id"); $userIds = $tblUser->columnRow($user, "id"); return $userIds; }
function testAccount() { $tblAccount = new DB_Pay_Account(); $tblUser = new DB_Sso_User(); $userIds = $tblUser->fetchAll("id,name"); foreach ($userIds as $k => $value) { $tblAccount->insert(array("sso_id" => $value['id'], "user_name" => $value['name'], "score" => 500, "amt" => 50, "created_time" => date('Y-m-d H:i:s'))); } }
function getUserName($uid) { $tbl = new DB_Sso_User(); $mobile = $tbl->scalar("name,mobile", "where id = {$uid}"); if (!$mobile) { return Common_Error::ERROR_FAIL; } else { return $mobile; } }