修改bug

master
ELF 5 years ago
parent 63e3adb129
commit 635f525881

@ -20,7 +20,7 @@ class UserController extends BaseController
public function isBan($ip, $deviceNum) public function isBan($ip, $deviceNum)
{ {
$ban = M('device_bans','tab_')->select(['id'])->where(['tag' => ['in', [$ip, $deviceNum]]])->limit(1)->find(); $ban = M('device_bans','tab_')->field(['id'])->where(['tag' => ['in', [$ip, $deviceNum]]])->limit(1)->find();
if (empty($ban)) { if (empty($ban)) {
return false; return false;
} }

Loading…
Cancel
Save