<commit_before><?php
namespace Home\Controller;

use Common\Controller\BaseController;
class LetterController extends BaseController{
    /**
     * 发送私信
     */
    public function send(){
        $this->getlogin()->reqPost(array('content','receiver_id','title'));
        $data=I('post.');
        $data['sender_id']=session('user.u_id');
        $this->ajaxReturn(D('Letter')->send($data));
    }
    
    /**
     * 获取消息列表
     */
    public function getList($page = 1,$limit = 10){
        $this->getlogin();
        $this->ajaxReturn(D('Letter')->getList(session('user.u_id'),$page = 1,$limit = 10));
    }
    
    /**<commit_msg>去掉letter接口的title字段<commit_after><?php
namespace Home\Controller;

use Common\Controller\BaseController;
class LetterController extends BaseController{
    /**
     * 发送私信
     */
    public function send(){
        $this->getlogin()->reqPost(array('content','receiver_id'));
        $data=I('post.');
        $data['sender_id']=session('user.u_id');
        $this->ajaxReturn(D('Letter')->send($data));
    }
    
    /**
     * 获取消息列表
     */
    public function getList($page = 1,$limit = 10){
        $this->getlogin();
        $this->ajaxReturn(D('Letter')->getList(session('user.u_id'),$page = 1,$limit = 10));
    }
    
    /**
{'fraction_non_alphanumeric': 0.1943351691581432, 'fraction_numerical': 0.00944138473642801, 'mean_word_length': 2.8662613981762917, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4436900', 'n_tokens_mistral': 425, 'n_tokens_neox': 422, 'n_words': 54}