正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -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){ |
-
请 注册 或 登录 后发表评论