mocept

Results issues of mocept

I can`t catch Bican\Roles\Exceptions\AccessDeniedException in Handler.php ``` use Bican\Roles\Exceptions\AccessDeniedException as AccessDeniedException; public function render($request, Exception $e) { die('sww'); if ($e instanceof AccessDeniedException) { echo 'ss';die(); } die('a'); return parent::render($request, 'ss');...

- 运行后端项目 ``` Error: Cannot find module 'koa-body-parsers' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object. (/Users/d.hilter/code/node/vue+koa+amdin/akoa/node_modules/koa-better-body/utils.js:11:21) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at...

- 公司/学校:重庆邮电大学/网龙/理才网 - 工作内容/专业:web前端/PHP/信息管理 - 常浏览的国外网站:stackoverflow.com, github.com - 英语水平:6级 - 有无翻译经验:有一点, 但是只是翻译文章的某部分,不是全书 - 个人博客:https://dmodaii.github.io - 个人介绍:保持好奇心,保持激情, 坚持学习

申请译者

![image](https://user-images.githubusercontent.com/16190100/29704010-8b7debe8-89aa-11e7-9a80-f8fda33c67cf.png) 选择后显示的值脚软转义了 ``` {{singleChar.label}} oprList:[ {label:'>',value:0}, {label:'>=',value:1}, {label:'=',value:2}, {label:'

- 在post请求的controller中准备重定向到这个url - 直接用postman发post请求可以正常重定向,在前端ajax不行 - get请求都可以 ``` const setLoginState = await this.service.portal.portal.getLoginState() this.ctx.redirect(setLoginState); ``` - 前端的console ***重定向为什么会产生options请求方式*** ![image.png](https://dn-cnode.qbox.me/FiRrdR1JAXypMHpgjjfdcZUPSVmR) - 各位在egg.js中post请求中怎么重定向的啊,

# 通用需求 想要指定运行一个任务(不是定时任务, 人工可以重复任意时间执行, 但是需要用到egg相关的插件和service所以考虑使用egg; 就是运行一个脚本, 脚本结束node服务就结束 # 实际业务需求 现在的具体场景是, 我需要运行一个查询某个数据库数据, 并配合某个java后端实现一定的数据处理功能; 就是一个脚本 # 请问各路大神怎么设计

- 如何指定使用哪个环境的配置进行跑测试 而不是只有默认的 config.unittest.js

how to delete token after logout or other condition?

while user logout , I need to delete his token or make it expried,but how?