作者 王智

xiugai

@@ -173,7 +173,7 @@ class Update extends Api @@ -173,7 +173,7 @@ class Update extends Api
173 $Status = input('status'); 173 $Status = input('status');
174 $Total = input('total'); 174 $Total = input('total');
175 $TickInfo = Db::name('tick')->find(); 175 $TickInfo = Db::name('tick')->find();
176 - if (($Status == 0 && $Total < $TickInfo['door']) || ($Status == 2 && $Total > $TickInfo['door'])) { 176 + if (($Status == 0 && $Total < $TickInfo['door']) || ($Status == 2 && $Total > $TickInfo['door']-1)) {
177 $this->success('成功', []); 177 $this->success('成功', []);
178 } else { 178 } else {
179 $TickArray = Db::name('user_tick')->where('user_id', $UserId)->where('status', 0)->select(); 179 $TickArray = Db::name('user_tick')->where('user_id', $UserId)->where('status', 0)->select();