作者 王智

xiugai

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