vali %!s(int64=6) %!d(string=hai) anos
pai
achega
b27cbcb291
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/index/controller/Register.php

+ 1 - 1
application/index/controller/Register.php

@@ -126,7 +126,7 @@ class Register extends Common
         $appuid = trim(input("post.appuid/s", ''));
         $token = trim(input("post.token/s", ''));
         $nowuid = (empty($appuid)) ? uniqid('anon_') : $appuid;
-        $nowuid = $appid . $nowuid;
+        $nowuid = (empty($appid) ? '' : $appid. '_') . $nowuid;
 
         if (!empty($nowuid) && !empty($token)) {
             $old = Db::name('accounts')->where(['account_name' => $nowuid, 'tokenvip' => $token])->find();