<commit_before><?php

class bk_data_basic_Model extends Model{
    function init(){
      $this->_bankUserDB = Load::table("bk_user", "db_cfg_bank") ;
      $this->_bankAccountDB = Load::table("bk_account", "db_cfg_bank");
      $this->_bankUserAccDB = Load::table("bk_user_acc", "db_cfg_bank");
    }
    
    //where 数组 key = 数据库字段， value=值
    function getUserByIds($where){
        $where['user_state'] = 1;
        $data = $this->_bankUserDB->fetchAll($where);
        return $data;
    }
    
    function loginUserByIds($user_id, $user_pwd){
        $sql = "SELECT * FROM bk_user WHERE (user_no = '" . $user_id ."' or user_tel = '". $user_id . "') and user_pwd = '" . $<PASSWORD>."'";
        $ret = $this->_bankUserDB->queryAll($sql);
        $result = array();
        foreach($ret as $val){
            $result = $val;
        }
        return $result;
    }
    
}
<commit_msg>添加signUpUser方法。<commit_after><?php

class bk_data_basic_Model extends Model{
    function init(){
      $this->_bankUserDB = Load::table("bk_user", "db_cfg_bank") ;
      $this->_bankAccountDB = Load::table("bk_account", "db_cfg_bank");
      $this->_bankUserAccDB = Load::table("bk_user_acc", "db_cfg_bank");
    }
    
    //where 数组 key = 数据库字段， value=值
    function getUserByIds($where){
        $where['user_state'] = 1;
        $data = $this->_bankUserDB->fetchAll($where);
        return $data;
    }
    
    function loginUserByIds($user_id, $user_pwd){
        $sql = "SELECT * FROM bk_user WHERE (user_no = '" . $user_id ."' or user_tel = '". $user_id . "') and user_pwd = '" . $user_<PASSWORD>."'";
        $ret = $this->_bankUserDB->queryAll($sql);
        $result = array();
        foreach($ret as $val){
            $result = $val;
        }
        return $result;
    }

    function signUpUser($where){
         $where['role_id'] = 2;
         $table = "bk_user";
         
         $result = $this->_bankUserDB->insert($table,$where);
         return $result;
    }
    
}

{'fraction_non_alphanumeric': 0.1701161029782938, 'fraction_numerical': 0.001514386673397274, 'mean_word_length': 2.526690391459075, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4404553', 'n_tokens_mistral': 703, 'n_tokens_neox': 694, 'n_words': 122}