$num = time() + mt_rand(10, 999999) . '' . substr($msec, 2, 3);
时间戳是10位+10-999999之间的随机数有2位了,这样就是12位了,那个substr($msec, 2, 3):取微秒部分的第2-4位数字,这个就没有意义了啊 ,核销码就12位,后面直接截取了
$num = time() + mt_rand(10, 999999) . '' . substr($msec, 2, 3);
时间戳是10位+10-999999之间的随机数有2位了,这样就是12位了,那个substr($msec, 2, 3):取微秒部分的第2-4位数字,这个就没有意义了啊 ,核销码就12位,后面直接截取了
软件开发徐工 最后编辑于2025-09-02 11:36:35
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}} LV.{{ item.user_info.bbs_level || item.bbs_level }}
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}{{itemf.name}}
相关推荐
快速安全登录
微信登录/注册
{{ bind_phone ? '绑定手机' : '手机登录'}}