作者 景琛

后台快速检索

... ... @@ -210,7 +210,10 @@ class Bind extends Api
$this->error('参数错误', ['status' => 2]);
}
$model = new StudyScoreLog();
$model->addScore($id,$unique);
$find = $model->addScore($id,$unique);
if ($find != 11){
$this->error('扫码无效');
}
//halt($res);
$data = db('study')->where('unique', $unique)->field('name,gender')->find();
if ($data['gender'] == 1){
... ...