tp5查询条件自动转为科学记数法

浏览:869 发布日期:2018/09/13 分类:求助交流 关键字: thinkphp5 科学记数法
$id = input('post.id');
        if (empty($port_id)) {
            return json(['code' => 0, 'msg' => 'id不能为空!']);
        }
        $port = PortModel::find($port_id);
        Log::write('id:' . $port_id);
        Log::write('sql:' . PortModel::getLastSql());
        if (empty($port)) {
            return json(['code' => 0, 'msg' => 'id错误!']);
        }
[ log ] id:971647014393611100
[ log ] sql:SELECT * FROM `t_pss_port` WHERE `id` = 9.7164701439361E+17 LIMIT 1
最佳答案
评论() 相关
后面还有条评论,点击查看>>