示例#1
0
文件: Message.php 项目: krisrita/udo
 function kaixinUser()
 {
     $tblUser = new DB_Sso_User();
     $user = $tblUser->fetchAll("id");
     $userIds = $tblUser->columnRow($user, "id");
     return $userIds;
 }
示例#2
0
文件: Trade.php 项目: krisrita/udo
 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')));
     }
 }
示例#3
0
文件: User.php 项目: krisrita/udo
 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;
     }
 }