field('U.*')->JOIN('user', 'as U', 'logon.uid=U.id')->where('logon.appid', $appid)->where('U.appid', $appid)->where('logon.token', $token)->find(); //false if (!$res_logon) out(127, $app_res); //TOKEN不存在或已失效 if ($res_logon['ban'] > time() || $res_logon['ban'] == 999999999) out(114, $res_logon['ban_notice'], $app_res); //账号被禁用 Db::table('user_logon')->where('token', $token)->update(['last_t' => time()]); //记录活动时间 if ($app_res['mode'] == 'y') { //判断当前收费模式 if ($res_logon['vip'] == '999999999' or $res_logon['vip'] > time()) { out(200, '验证成功', $app_res); } else { out(201, '验证失败', $app_res); } } else { out(200, '验证成功', $app_res); } ?>