作者 开飞机的舒克

后台修改

... ... @@ -245,7 +245,7 @@ class Bind extends Api
->select();
return $item;
});
$this->success('获取学生信息成功', [$data, 'status' => 1]);
$this->success('获取学生信息成功', $data);
}
}
\ No newline at end of file
... ...
... ... @@ -70,7 +70,7 @@ class Index extends Api
->where(['study_id' => $sid, 'campus_id' => $campus])
->sum('score');
$data['active_study_info'] = \db('study')->where('id', $sid)->value('name');
$this->success('获取成功', [$data, 'status' => 1]);
$this->success('获取成功', $data);
}
/**
... ... @@ -141,7 +141,7 @@ class Index extends Api
$v['url'] = null;
}
}
$this->success('获取轮播图详情成功', [$data, 'status' => 1]);
$this->success('获取轮播图详情成功', $data);
}
/**
... ... @@ -187,7 +187,7 @@ class Index extends Api
->order('t.score DESC')
->paginate($row, false, ['page' => $page]);
//最终显示
$this->success('战队排行榜', [$data, 'status' => 1]);
$this->success('战队排行榜', $data);
}
/**
... ... @@ -236,6 +236,6 @@ class Index extends Api
return $item;
});
//最终显示
$this->success('个人排行榜', [$data, 'status' => 1]);
$this->success('个人排行榜', $data);
}
}
... ...
... ... @@ -114,7 +114,7 @@ class User extends Api
}
$data['xh'] = "输入学号绑定信息";
$data['sm'] = "扫码绑定信息";
$this->success('',[$data, 'status' => 1]);
$this->success('',$data);
}
... ... @@ -166,7 +166,7 @@ class User extends Api
$item['date'] = date('Y-m-d H:i:s', $item['createtime']);
return $item;
});
$this->success('获取成功', [$data, 'status' => 1]);
$this->success('获取成功', $data);
}
/**
... ... @@ -185,7 +185,7 @@ class User extends Api
if (!$data) {
$this->error('暂无内容', ['status' => 2]);
}
$this->success('获取成功',[$data, 'status' => 1]);
$this->success('获取成功',$data);
}
... ...