userId = M("user", "tab_")->where(['user_token' => $userToken])->getField("id"); $this->userToken = $userToken; if (!$this->userId) { re_msg(12, $userToken."Token失效"); } } }