/** * 生成Token * @param $userId * @return mixed */ public function _createToken($userId) { return Util::aesEncode($userId . '_' . $this->time . '_' . C('TOKEN_DISTURB_CODE')); }