vali 6 년 전
부모
커밋
b27cbcb291
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();