作者 景琛

后台快速检索

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