提交 5aefcfb3 编写于 作者: D devil_gong

微信授权

上级 96426b88
......@@ -55,7 +55,7 @@ class Service
}
// 用户名
$username = empty($params['nickname']) ? '微信'.RandomString(6) : $params['username'].RandomString(6);
$username = empty($params['nickname']) ? '微信'.RandomString(6) : $params['nickname'].RandomString(6);
if(mb_strlen($username, 'utf-8') > 18)
{
$username = mb_substr($username, 0, 18);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册