作者 开飞机的舒克

后台优化

... ... @@ -59,7 +59,7 @@ class Study extends Model
public function getBarcodeImagesAttr($value,$data){
$list = $this->where('id',$data['id'])->value('barcode');
$order = 'http://campus.cn'.$list;
$order = 'http://campus.shs.broing.cn'.$list;
return $order;
}
... ...
... ... @@ -54,7 +54,7 @@ class Screen extends Api
->each(function ($item,$key){
$res = db('study_score_log')->where('campus_id',$item['campus_id'])->sum('score');
$item['score'] = floor($item['sum_score']);
$item['percent'] = round($item['score'] / $res * 100,2);
$item['percent'] = round(($item['score']*0.6) / $res * 100,2);
$item['study'] = db('study')->where('team_id',$item['team_id'])->field('name,earn_score')->order('earn_score','desc')->select();
return $item;
});
... ...