/** * 插入映射数据 */ public static function insertUserMap($paramArr) { $options = array('insertData' => array()); if (is_array($paramArr)) { $options = array_merge($options, $paramArr); } extract($options); $formatData = self::setInsertCondition($insertData); $sql = "REPLACE INTO api_user_map({$formatData['fileds']}) VALUES({$formatData['values']})"; $db = Db_User::instance(); $db->query($sql); return $db->lastInsertId(); }
private function CheckIdExist() { if (!Db_User::checkExists($this->Id, 'id')) { $this->Msg->SetMsg($this->_T('error_id_not_exist') . ' ' . $this->Id); $this->Msg->SetError(true); $this->Redirect($this->PageUrl); } }