{"action":"created","issue":{"url":"https://api.github.com/repos/eggjs/egg/issues/2949","repository_url":"https://api.github.com/repos/eggjs/egg","labels_url":"https://api.github.com/repos/eggjs/egg/issues/2949/labels{/name}","comments_url":"https://api.github.com/repos/eggjs/egg/issues/2949/comments","events_url":"https://api.github.com/repos/eggjs/egg/issues/2949/events","html_url":"https://github.com/eggjs/egg/issues/2949","id":355650787,"node_id":"MDU6SXNzdWUzNTU2NTA3ODc=","number":2949,"title":"[Bug] ts 中想给 cookie 设置 `encrypt` 失败","user":{"login":"JZLeung","id":7995232,"node_id":"MDQ6VXNlcjc5OTUyMzI=","avatar_url":"https://avatars2.githubusercontent.com/u/7995232?v=4","gravatar_id":"","url":"https://api.github.com/users/JZLeung","html_url":"https://github.com/JZLeung","followers_url":"https://api.github.com/users/JZLeung/followers","following_url":"https://api.github.com/users/JZLeung/following{/other_user}","gists_url":"https://api.github.com/users/JZLeung/gists{/gist_id}","starred_url":"https://api.github.com/users/JZLeung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JZLeung/subscriptions","organizations_url":"https://api.github.com/users/JZLeung/orgs","repos_url":"https://api.github.com/users/JZLeung/repos","events_url":"https://api.github.com/users/JZLeung/events{/privacy}","received_events_url":"https://api.github.com/users/JZLeung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"whxaxes","id":5856440,"node_id":"MDQ6VXNlcjU4NTY0NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/5856440?v=4","gravatar_id":"","url":"https://api.github.com/users/whxaxes","html_url":"https://github.com/whxaxes","followers_url":"https://api.github.com/users/whxaxes/followers","following_url":"https://api.github.com/users/whxaxes/following{/other_user}","gists_url":"https://api.github.com/users/whxaxes/gists{/gist_id}","starred_url":"https://api.github.com/users/whxaxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whxaxes/subscriptions","organizations_url":"https://api.github.com/users/whxaxes/orgs","repos_url":"https://api.github.com/users/whxaxes/repos","events_url":"https://api.github.com/users/whxaxes/events{/privacy}","received_events_url":"https://api.github.com/users/whxaxes/received_events","type":"User","site_admin":false},"assignees":[{"login":"whxaxes","id":5856440,"node_id":"MDQ6VXNlcjU4NTY0NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/5856440?v=4","gravatar_id":"","url":"https://api.github.com/users/whxaxes","html_url":"https://github.com/whxaxes","followers_url":"https://api.github.com/users/whxaxes/followers","following_url":"https://api.github.com/users/whxaxes/following{/other_user}","gists_url":"https://api.github.com/users/whxaxes/gists{/gist_id}","starred_url":"https://api.github.com/users/whxaxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whxaxes/subscriptions","organizations_url":"https://api.github.com/users/whxaxes/orgs","repos_url":"https://api.github.com/users/whxaxes/repos","events_url":"https://api.github.com/users/whxaxes/events{/privacy}","received_events_url":"https://api.github.com/users/whxaxes/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-08-30T15:58:07Z","updated_at":"2018-09-01T05:36:29Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThank you for reporting an issue.\r\n\r\n1. It's RECOMMENDED to submit PR for typo or tiny bug fix.\r\n2. If this's a FEATURE request, please provide: details, pseudo codes if necessary.\r\n3. If this's a BUG, please provide: course repetition, error log and configuration. Fill in as much of the template below as you're able.\r\n4. It will be nice to use `egg-init --type=simple bug` to provide a mini GitHub repository which can reproduce the issue.\r\n\r\n感谢您向我们反馈问题。\r\n\r\n1. 提交问题前，请先阅读 https://eggjs.org/zh-cn/faq.html\r\n2. 我们推荐如果是小问题（错别字修改，小的 bug fix）直接提交 PR。\r\n3. 如果是一个新需求，请提供：详细需求描述，最好是有伪代码实现。\r\n4. 如果是一个 BUG，请提供：复现步骤，错误日志以及相关配置，并尽量填写下面的模板中的条目。\r\n5. 如果可以，请使用 `egg-init --type=simple bug` 提供一个最小可复现的代码仓库，方便我们排查问题。\r\n6. 扩展阅读：[如何向开源项目提交无法解答的问题](https://zhuanlan.zhihu.com/p/25795393)\r\n-->\r\n\r\n* **Node Version**: 8.11.3\r\n* **Egg Version**: 2.10.0\r\n* **Plugin Name**: x\r\n* **Plugin Version**:x\r\n* **Platform**: macOS\r\n* **Mini Showcase Repository**:\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n![image](https://user-images.githubusercontent.com/7995232/44863548-f7b6b280-acaf-11e8-9057-411797996c81.png)\r\nts 中想给 cookie 设置 `encrypt` 失败，提示入上图。\r\n```js\r\nthis.ctx.cookies.set('xxx', 'fff', {\r\n  maxAge: expires_in - 60,\r\n  signed: true,\r\n  encrypt: true,\r\n  httpOnly: true,\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/eggjs/egg/issues/comments/417834787","html_url":"https://github.com/eggjs/egg/issues/2949#issuecomment-417834787","issue_url":"https://api.github.com/repos/eggjs/egg/issues/2949","id":417834787,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzgzNDc4Nw==","user":{"login":"whxaxes","id":5856440,"node_id":"MDQ6VXNlcjU4NTY0NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/5856440?v=4","gravatar_id":"","url":"https://api.github.com/users/whxaxes","html_url":"https://github.com/whxaxes","followers_url":"https://api.github.com/users/whxaxes/followers","following_url":"https://api.github.com/users/whxaxes/following{/other_user}","gists_url":"https://api.github.com/users/whxaxes/gists{/gist_id}","starred_url":"https://api.github.com/users/whxaxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whxaxes/subscriptions","organizations_url":"https://api.github.com/users/whxaxes/orgs","repos_url":"https://api.github.com/users/whxaxes/repos","events_url":"https://api.github.com/users/whxaxes/events{/privacy}","received_events_url":"https://api.github.com/users/whxaxes/received_events","type":"User","site_admin":false},"created_at":"2018-09-01T05:36:29Z","updated_at":"2018-09-01T05:36:29Z","author_association":"MEMBER","body":"@Maledong  提示的同时，你要保证能正常编译，还有编译出来的代码不出错"}}
{"actor":{"display_login":"whxaxes"}}