陈德本 7 년 전
부모
커밋
17db7d1098
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      App/Api/Controller/User/Auth.php

+ 1 - 2
App/Api/Controller/User/Auth.php

@@ -16,11 +16,10 @@ class Auth extends RestfulController
     protected function getData()
     {
         $cookie = $_SESSION['user_key'];
-        if ($cookie) {
+        if (!$cookie) {
             $cookie = md5(time());
             $_SESSION['user_key'] = $cookie;
         }
-//        $_SESSION['user_key']="9f6e6800cfae7749eb6c486619254b9c";
         $this->showSuccess($cookie);
     }