StudyScoreLog.php 670 字节
<?php

namespace app\common\model;

use think\Model;

class StudyScoreLog extends Model
{
    // 表名
    protected $name = 'study_score_log';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    // 追加属性
    protected $append = [

    ];


    //加分
    public function addScore($id,$unique){
        $study = new Study();
        $team = new Team();
        $item = new Item();
        $stu = $study->where('unique',$unique)->find()->toArray();
        $xm = $item->where('id',$id)->find()->toArray();

    }

}