Authored by 周奇琪

添加api 文档生成

增加header 管理员信息传参
调整部分日志打印
删除日志文件
... ... @@ -28,4 +28,5 @@ coverage
*.config
*.njsproj
bin
obj
\ No newline at end of file
obj
*.log
... ...
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T07:15:59.475Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T07:16:00.493Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T07:51:06.437Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T07:51:07.566Z"}
{"level":"info","message":"CurentView:Login","timestamp":"2016-02-04T07:56:33.877Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T07:56:36.830Z"}
{"method":"POST","url":"http://admin.portal.yohobuy.com/account/login/sessions","form":{"account":"wxtest1","password":"yoho9646abcdef","refer":"%2Faccount%2Fprofile%2Fdisplay"},"level":"info","message":"gray login options:","timestamp":"2016-02-04T07:56:37.043Z"}
{"dict":{"date":"Thu, 04 Feb 2016 07:56:45 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"close","server":"YH-local","set-cookie":["PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","pragma":"no-cache","location":"/account/profile/display"},"level":"info","message":"login old server response http headers:","timestamp":"2016-02-04T07:56:37.289Z"}
{"0":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","level":"info","message":"login gray cookie:","timestamp":"2016-02-04T07:56:37.291Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T07:56:37.790Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/guang/article/index","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:01.907Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/style.default.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.082Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/dataTables.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.086Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/morris.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.092Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/select2.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.103Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/jquery-ui-timepicker-addon.min.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.107Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/chosen.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.134Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-1.11.1.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.220Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/bootstrap.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.242Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery.gritter.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.246Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/main.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.254Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/chosen.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.257Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/custom.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.344Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-ui-1.10.3.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.380Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/weather-icons.min.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.404Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/jquery-ui-1.10.3.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.409Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/animate.min.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.436Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/animate.delay.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.481Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/toggles.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.501Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/pace.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.504Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.iframe-transport.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.567Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.fileupload.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.591Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/upload.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.593Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/pagination.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.596Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery.cookies.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.635Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/select2.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.664Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-ui-timepicker-addon.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.685Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery.gritter.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.715Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/chosen.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:03.801Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-ui-1.10.3.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:04.184Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.iframe-transport.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:04.625Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.fileupload.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:04.700Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/upload.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:04.960Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/pagination.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:05.200Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery.cookies.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:05.277Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/select2.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:05.360Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-ui-timepicker-addon.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=a0f44cllpb2c104evdurcm86g2; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:05.659Z"}
{"level":"info","message":"CurentView:Login","timestamp":"2016-02-04T07:57:41.603Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T07:57:43.758Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/guang/article/index","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.329Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/style.default.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.718Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/dataTables.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.722Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/morris.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.734Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/select2.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.738Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/jquery-ui-timepicker-addon.min.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.743Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/chosen.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.773Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-1.11.1.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.811Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/bootstrap.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.833Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery.gritter.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.837Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/main.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.844Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/chosen.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.857Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/custom.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.927Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-ui-1.10.3.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.932Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.iframe-transport.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:44.937Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.fileupload.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.009Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/upload.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.017Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/pagination.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.027Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/weather-icons.min.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.107Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/jquery-ui-1.10.3.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.109Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/animate.min.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.122Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/animate.delay.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.186Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/toggles.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.192Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/css/pace.css","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.217Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery.cookies.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.262Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/select2.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.265Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-ui-timepicker-addon.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.276Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery.gritter.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.407Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/chosen.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.484Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-ui-1.10.3.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:45.737Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.iframe-transport.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:46.195Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.fileupload.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:46.272Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/upload.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:46.507Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/pagination.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:46.731Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery.cookies.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:46.816Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/select2.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:46.892Z"}
{"method":"GET","url":"http://admin.portal.yohobuy.com/js/jquery-ui-timepicker-addon.min.js","timeout":5000,"headers":{"Cookie":"PHPSESSID=k0oock234dei4mqtcqhn57v9h4; path=/; domain=.yohobuy.com","Referer":"http://localhost:30012/guang/article/index"},"level":"info","message":"grayroute: request options: %s","timestamp":"2016-02-04T07:57:47.129Z"}
{"level":"info","message":"CurentView:Login","timestamp":"2016-02-04T08:00:50.484Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T08:00:53.115Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/guang/article/index\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:53.519Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/style.default.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:53.998Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/dataTables.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.000Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/morris.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.001Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/select2.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.008Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/jquery-ui-timepicker-addon.min.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.012Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/chosen.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.033Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-1.11.1.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.088Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/bootstrap.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.124Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery.gritter.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.143Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/main.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.144Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/chosen.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.151Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/custom.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.209Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-ui-1.10.3.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.231Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.iframe-transport.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.237Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.fileupload.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.288Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/upload.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.306Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/weather-icons.min.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.335Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/jquery-ui-1.10.3.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.386Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/animate.min.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.420Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/animate.delay.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.424Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/toggles.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.467Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/pace.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.514Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/pagination.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.521Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery.cookies.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.524Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/select2.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.545Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-ui-timepicker-addon.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.588Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery.gritter.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.692Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/chosen.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:54.766Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-ui-1.10.3.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:55.058Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.iframe-transport.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:55.515Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.fileupload.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:55.594Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/upload.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:55.834Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/pagination.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:56.086Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery.cookies.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:56.167Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/select2.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:56.255Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-ui-timepicker-addon.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=9itq10mn6agesepmm9d1lb4904; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:00:56.511Z"}
{"level":"info","message":"CurentView:Login","timestamp":"2016-02-04T08:02:44.993Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T08:02:47.562Z"}
{"method":"POST","url":"http://admin.portal.yohobuy.com/account/login/sessions","form":{"account":"wxtest1","password":"yoho9646abcdef","refer":"%2Faccount%2Fprofile%2Fdisplay"},"level":"verbose","message":"gray login options:","timestamp":"2016-02-04T08:02:47.963Z"}
{"dict":{"date":"Thu, 04 Feb 2016 08:02:56 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"close","server":"YH-local","set-cookie":["PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","pragma":"no-cache","location":"/account/profile/display"},"level":"verbose","message":"login old server response http headers:","timestamp":"2016-02-04T08:02:48.117Z"}
{"0":"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com","level":"verbose","message":"login gray cookie:","timestamp":"2016-02-04T08:02:48.118Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/guang/article/index\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.132Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/style.default.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.533Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/dataTables.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.535Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/morris.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.537Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/select2.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.545Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/jquery-ui-timepicker-addon.min.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.546Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/chosen.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.569Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-1.11.1.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.633Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/bootstrap.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.634Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery.gritter.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.644Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/main.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.647Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/chosen.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.652Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/custom.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.728Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-ui-1.10.3.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.729Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.iframe-transport.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.734Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.fileupload.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.774Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/weather-icons.min.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.825Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/jquery-ui-1.10.3.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.826Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/animate.min.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.866Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/animate.delay.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.900Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/toggles.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.902Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/css/pace.css\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.959Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/upload.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.976Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/pagination.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.983Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery.cookies.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:48.984Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/select2.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:49.028Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-ui-timepicker-addon.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:49.054Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/bootstrap.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:49.117Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/main.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:49.194Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/chosen.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:49.270Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-ui-1.10.3.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:49.572Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.iframe-transport.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:50.080Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/fileUpload/js/jquery.fileupload.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:50.152Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/upload.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:50.355Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/select2.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:50.581Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/js/jquery-ui-timepicker-addon.min.js\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/guang/article/index\"}}","timestamp":"2016-02-04T08:02:50.838Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T08:03:08.365Z"}
{"level":"info","message":"grayroute: session keep status:200","timestamp":"2016-02-04T08:03:08.999Z"}
{"level":"info","message":"grayroute: request options: {\"method\":\"GET\",\"url\":\"http://admin.portal.yohobuy.com/erpproduct/brands/undefined\",\"timeout\":5000,\"headers\":{\"Cookie\":\"PHPSESSID=n9r216dua8g3steuurubu0ci12; path=/; domain=.yohobuy.com\",\"Referer\":\"http://localhost:30012/erpproduct/brands/index\"}}","timestamp":"2016-02-04T08:03:09.015Z"}
This diff could not be displayed because it is too large.
{"date":"Thu Feb 04 2016 15:08:09 GMT+0800 (中国标准时间)","process":{"pid":19440,"uid":null,"gid":null,"cwd":"E:\\code\\yohobuy-portal-fe\\server","execPath":"D:\\Program Files\\nodejs\\node.exe","version":"v4.0.0","argv":["D:\\Program Files\\nodejs\\node.exe","E:\\code\\yohobuy-portal-fe\\server\\app"],"memoryUsage":{"rss":104378368,"heapTotal":87606272,"heapUsed":55298392}},"os":{"loadavg":[0,0,0],"uptime":1029675.0066981},"trace":[{"column":18,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\yo.js\\node_modules\\winston\\lib\\winston\\logger.js","function":"Logger.log","line":139,"method":"log","native":false},{"column":9,"file":"E:\\code\\yohobuy-portal-fe\\server\\mid\\grayroute.js","function":"Request._callback","line":112,"method":"_callback","native":false},{"column":22,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"Request.self.callback","line":198,"method":"self.callback","native":false},{"column":13,"file":"events.js","function":"emitTwo","line":87,"method":null,"native":false},{"column":7,"file":"events.js","function":"Request.emit","line":172,"method":"emit","native":false},{"column":10,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"","line":1035,"method":null,"native":false},{"column":20,"file":"events.js","function":"emitOne","line":82,"method":null,"native":false},{"column":7,"file":"events.js","function":"Request.emit","line":169,"method":"emit","native":false},{"column":12,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"","line":962,"method":null,"native":false},{"column":20,"file":"events.js","function":"emitNone","line":72,"method":null,"native":false},{"column":7,"file":"events.js","function":"IncomingMessage.emit","line":166,"method":"emit","native":false},{"column":12,"file":"_stream_readable.js","function":"endReadableNT","line":893,"method":null,"native":false},{"column":9,"file":"node.js","function":"doNTCallback2","line":429,"method":null,"native":false},{"column":17,"file":"node.js","function":"process._tickCallback","line":343,"method":"_tickCallback","native":false}],"stack":["TypeError: Cannot read property 'length' of undefined"," at Logger.log (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\yo.js\\node_modules\\winston\\lib\\winston\\logger.js:139:18)"," at Request._callback (E:\\code\\yohobuy-portal-fe\\server\\mid\\grayroute.js:112:9)"," at Request.self.callback (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:198:22)"," at emitTwo (events.js:87:13)"," at Request.emit (events.js:172:7)"," at Request.<anonymous> (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:1035:10)"," at emitOne (events.js:82:20)"," at Request.emit (events.js:169:7)"," at IncomingMessage.<anonymous> (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:962:12)"," at emitNone (events.js:72:20)"," at IncomingMessage.emit (events.js:166:7)"," at endReadableNT (_stream_readable.js:893:12)"," at doNTCallback2 (node.js:429:9)"," at process._tickCallback (node.js:343:17)",""],"level":"error","message":"uncaughtException: Cannot read property 'length' of undefined","timestamp":"2016-02-04T07:08:09.367Z"}
{"date":"Thu Feb 04 2016 15:08:10 GMT+0800 (中国标准时间)","process":{"pid":19440,"uid":null,"gid":null,"cwd":"E:\\code\\yohobuy-portal-fe\\server","execPath":"D:\\Program Files\\nodejs\\node.exe","version":"v4.0.0","argv":["D:\\Program Files\\nodejs\\node.exe","E:\\code\\yohobuy-portal-fe\\server\\app"],"memoryUsage":{"rss":108589056,"heapTotal":90690048,"heapUsed":55450112}},"os":{"loadavg":[0,0,0],"uptime":1029675.9783412},"trace":[{"column":18,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\yo.js\\node_modules\\winston\\lib\\winston\\logger.js","function":"Logger.log","line":139,"method":"log","native":false},{"column":9,"file":"E:\\code\\yohobuy-portal-fe\\server\\mid\\grayroute.js","function":"Request._callback","line":112,"method":"_callback","native":false},{"column":22,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"Request.self.callback","line":198,"method":"self.callback","native":false},{"column":13,"file":"events.js","function":"emitTwo","line":87,"method":null,"native":false},{"column":7,"file":"events.js","function":"Request.emit","line":172,"method":"emit","native":false},{"column":10,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"","line":1035,"method":null,"native":false},{"column":20,"file":"events.js","function":"emitOne","line":82,"method":null,"native":false},{"column":7,"file":"events.js","function":"Request.emit","line":169,"method":"emit","native":false},{"column":12,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"","line":962,"method":null,"native":false},{"column":20,"file":"events.js","function":"emitNone","line":72,"method":null,"native":false},{"column":7,"file":"events.js","function":"IncomingMessage.emit","line":166,"method":"emit","native":false},{"column":12,"file":"_stream_readable.js","function":"endReadableNT","line":893,"method":null,"native":false},{"column":9,"file":"node.js","function":"doNTCallback2","line":429,"method":null,"native":false},{"column":17,"file":"node.js","function":"process._tickCallback","line":343,"method":"_tickCallback","native":false}],"stack":["TypeError: Cannot read property 'length' of undefined"," at Logger.log (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\yo.js\\node_modules\\winston\\lib\\winston\\logger.js:139:18)"," at Request._callback (E:\\code\\yohobuy-portal-fe\\server\\mid\\grayroute.js:112:9)"," at Request.self.callback (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:198:22)"," at emitTwo (events.js:87:13)"," at Request.emit (events.js:172:7)"," at Request.<anonymous> (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:1035:10)"," at emitOne (events.js:82:20)"," at Request.emit (events.js:169:7)"," at IncomingMessage.<anonymous> (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:962:12)"," at emitNone (events.js:72:20)"," at IncomingMessage.emit (events.js:166:7)"," at endReadableNT (_stream_readable.js:893:12)"," at doNTCallback2 (node.js:429:9)"," at process._tickCallback (node.js:343:17)",""],"level":"error","message":"uncaughtException: Cannot read property 'length' of undefined","timestamp":"2016-02-04T07:08:10.339Z"}
{"date":"Thu Feb 04 2016 15:10:37 GMT+0800 (中国标准时间)","process":{"pid":19440,"uid":null,"gid":null,"cwd":"E:\\code\\yohobuy-portal-fe\\server","execPath":"D:\\Program Files\\nodejs\\node.exe","version":"v4.0.0","argv":["D:\\Program Files\\nodejs\\node.exe","E:\\code\\yohobuy-portal-fe\\server\\app"],"memoryUsage":{"rss":77737984,"heapTotal":59748608,"heapUsed":53728728}},"os":{"loadavg":[0,0,0],"uptime":1029822.6566563},"trace":[{"column":18,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\yo.js\\node_modules\\winston\\lib\\winston\\logger.js","function":"Logger.log","line":139,"method":"log","native":false},{"column":9,"file":"E:\\code\\yohobuy-portal-fe\\server\\mid\\grayroute.js","function":"Request._callback","line":112,"method":"_callback","native":false},{"column":22,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"Request.self.callback","line":198,"method":"self.callback","native":false},{"column":13,"file":"events.js","function":"emitTwo","line":87,"method":null,"native":false},{"column":7,"file":"events.js","function":"Request.emit","line":172,"method":"emit","native":false},{"column":10,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"","line":1035,"method":null,"native":false},{"column":20,"file":"events.js","function":"emitOne","line":82,"method":null,"native":false},{"column":7,"file":"events.js","function":"Request.emit","line":169,"method":"emit","native":false},{"column":12,"file":"E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js","function":"","line":962,"method":null,"native":false},{"column":20,"file":"events.js","function":"emitNone","line":72,"method":null,"native":false},{"column":7,"file":"events.js","function":"IncomingMessage.emit","line":166,"method":"emit","native":false},{"column":12,"file":"_stream_readable.js","function":"endReadableNT","line":893,"method":null,"native":false},{"column":9,"file":"node.js","function":"doNTCallback2","line":429,"method":null,"native":false},{"column":17,"file":"node.js","function":"process._tickCallback","line":343,"method":"_tickCallback","native":false}],"stack":["TypeError: Cannot read property 'length' of undefined"," at Logger.log (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\yo.js\\node_modules\\winston\\lib\\winston\\logger.js:139:18)"," at Request._callback (E:\\code\\yohobuy-portal-fe\\server\\mid\\grayroute.js:112:9)"," at Request.self.callback (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:198:22)"," at emitTwo (events.js:87:13)"," at Request.emit (events.js:172:7)"," at Request.<anonymous> (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:1035:10)"," at emitOne (events.js:82:20)"," at Request.emit (events.js:169:7)"," at IncomingMessage.<anonymous> (E:\\code\\yohobuy-portal-fe\\server\\node_modules\\request\\request.js:962:12)"," at emitNone (events.js:72:20)"," at IncomingMessage.emit (events.js:166:7)"," at endReadableNT (_stream_readable.js:893:12)"," at doNTCallback2 (node.js:429:9)"," at process._tickCallback (node.js:343:17)",""],"level":"error","message":"uncaughtException: Cannot read property 'length' of undefined","timestamp":"2016-02-04T07:10:37.019Z"}
This diff could not be displayed because it is too large.
... ... @@ -9,7 +9,7 @@ var auth = require('./mid/auth');//认证中间件
var pageModule = require('./mid/pageModule');//页面加载js中间件
var grayroute = require('./mid/grayroute');//灰度界面中间件
var config = require('./config/common');
var util = require('./util/common');
... ... @@ -36,6 +36,7 @@ var options = {
},
beforeCustMid: function (app, routers) {
app.use(auth);//权限验证
app.get('/apidoc',util.getInterfaceConfig(routers));
app.use(grayroute(routers));//灰度界面中间件
app.use(pageModule);//客户端js模块加载
},
... ...
... ... @@ -3,7 +3,7 @@
* @type String
*/
var env = process.env.NODE_ENV || 'development';
var util = require('../util/common');
/**
* 外系统依赖配置
* @type Object
... ... @@ -11,16 +11,17 @@ var env = process.env.NODE_ENV || 'development';
var config = {
'development':{
redis:null,
apiKey:'sd4H1ecAqlp',
domain:'http://192.168.102.215:8080/platform',
loggers: {
api: {
level:'verbose'
level:'verbose',
},
yo: {
level:'verbose'
level:'verbose',
},
app: {
level:'verbose'
level:'verbose',
}
}
},
... ... @@ -29,6 +30,7 @@ var config = {
port:6379,
host:'localhost'
},
apiKey:'sd4H1ecAqlp',
domain:'http://192.168.102.202:8081/platform',
logsFile:'/Data/logs/node/yohobuy-portal-log/',
loggers: {
... ... @@ -48,6 +50,7 @@ var config = {
port:6379,
host:'192.168.74.17'
},
apiKey:'sd4H1ecAqlp',
domain:'http://192.168.81.13:8189/yoho-admin-portal',
logsFile:'/Data/logs/node/yohobuy-portal-log/',
loggers: {
... ... @@ -67,6 +70,7 @@ var config = {
port:16379,
host:'localhost'
},
apiKey:'sd4H1ecAqlp',
domain:'http://192.168.81.6:8189/yoho-admin-portal',
logsFile:'/Data/logs/node/yohobuy-portal-log/',
loggers: {
... ...
... ... @@ -5,7 +5,7 @@
var _= require('lodash');
var ipaddr = require('ipaddr.js');
var options=require('../staticConfig.js').staticDir;
/**
... ... @@ -18,6 +18,8 @@ var guestAccessList = {
var NO_AUTH = '没有权限!';
var WEBSITE = 1;
/**
* 认证中间件
* @param {Object} req 请求对象
... ... @@ -46,6 +48,12 @@ module.exports = function(req, res, next) {
} else {
res.appendData = _.merge(res.appendData,req.session.user);
}
//添加管理员信息到http头
if(req.session.user) {
appendAdminInfo(req,req.session.user.auth);
}
next();
} else {
req.app.logger.log('info',"CurentView:Login");
... ... @@ -70,4 +78,22 @@ function checkPath(path,req) {
}
});
return ret;
}
/**
* 附加管理员的信息
* @param {Request} req 请求对象
* @param {Number} uid 用户ID
* @param {String} name 用户名
* @return {Object} 用户信息对象
*/
function appendAdminInfo(req,auth) {
var ipObject = ipaddr.process(req.ip).octets
var ip = ipObject?ipObject.join('.'):req.ip;
req._yoheaders = {
'x-user-id':auth.pid,
'x-user-name':auth.account,
'x-site-type':WEBSITE,
'x-client-ip':ip
};
}
\ No newline at end of file
... ...
... ... @@ -10,11 +10,11 @@
"license": "ISC",
"dependencies": {
"handlebars-layouts": "^3.1.3",
"ipaddr.js": "^1.1.0",
"lodash": "^3.10.0",
"qiniu": "^6.1.9",
"request": "^2.55.0",
"yo.js": "^1.1.0",
"qiniu": "^6.1.9"
"yo.js": "^1.1.1"
},
"devDependencies": {
}
"devDependencies": {}
}
... ...
... ... @@ -22,6 +22,7 @@ var errorMessage = {
* @return {void}
*/
exports.callLogin = function(user,password,res) {
util.setLogger(res.app.logger);
var options = {
url:oldService.login,
form:{
... ...
... ... @@ -8,6 +8,8 @@ var request = require('request');
var path = require('path');
var fs = require('fs');
var logger = console;
var config = require('../config/common');
/**
* 模块名处理,根据环境设置模块名
... ... @@ -30,6 +32,8 @@ exports.moduleProc = function (module) {
// return 'js/'+module;
}
/**
* http调用,简单封装
* @param {Object} options request的传参
... ... @@ -40,33 +44,29 @@ exports.httpCall = function (options, callback) {
method: 'POST'
}
options = _.merge(defaultOptions, options);
console.info('httpCall Info:');
console.info(options);
logger.info('httpCall Info:',options);
//调用服务
request(options, function (err, res, body) {
if (err) {
console.error('httpCall error:');
console.error(err);
logger.error('httpCall error:',err);
callback(true);
} else if (res && res.statusCode === 200) {
try {
var ret = JSON.parse(body);
} catch(err) {
console.error(err);
console.log(body);
logger.error(err,body);
callback(true);
return;
}
if (ret.code !== 200) {
console.warn('httpCall warn:');
console.warn(ret);
logger.warn('httpCall warn:',ret);
callback(true, ret);
} else {
callback(null, ret);
}
} else {
console.error('httpCall error:' + res.statusCode);
logger.error('httpCall error:' + res.statusCode);
callback(true, {
code: res.statusCode,
message: 'server error!!'
... ... @@ -75,6 +75,14 @@ exports.httpCall = function (options, callback) {
});
}
/**
* 配置日志打印方式
* @param {[type]} applogger [description]
*/
exports.setLogger = function(applogger) {
logger = applogger;
}
//读取某个文件夹下面所有的js文件
... ... @@ -100,3 +108,65 @@ exports.readDir = function (dir, callback) {
exports.maskCode = function (msg) {
return msg.replace(/\D|\d/g,'*');
}
/**
* 深度递归设置值
* @param {[type]} obj [description]
* @param {[type]} key [description]
* @param {Function} cb [description]
* @return {[type]} [description]
*/
exports.deepSet = function (obj,key,cb) {
if(!obj||!key||!cb) {
return false;
}
_.forIn(obj, function (val, k) {
if(k === key) {
obj[k] = cb(val);
}
if (_.isArray(val)) {
val.forEach(function(el) {
if (_.isObject(el)) {
exports.deepSet(el,key,cb);
}
});
}
if (_.isObject(obj[k])) {
exports.deepSet(obj[k],key,cb);
}
});
}
exports.getInterfaceConfig = function (routers) {
return function(req,res) {
if(req.query.key === config.apiKey) {
var groupList = [];
var navs = [];
var group = {};
_.forEach(routers.interfacesConfig,function(v,k){
if(v.url)
{
var nav = v.url.split('/')[1];
if(group[nav]) {
group[nav].push(v);
} else {
group[nav] = [v];
}
}
});
_.forEach(group,function(v,k){
groupList.push({list:v,name:k,active:false});
navs.push({name:k,active:false});
});
navs[0].active = true;
groupList[0].active = true;
res.render('pages/apidoc/doc',{nav:navs,group:groupList,layout:false});
} else {
res.status(403).send('Permission denied');
}
}
}
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>YOHO!BUY API DOC</title>
<link href="css/all.css" rel="stylesheet">
</head>
<body>
<header>
<div class="headerwrapper">
<div class="header-left">
<h4 class="mt5" style="color:#fff">YOHO!BUY API DOC</h4>
</div>
</div>
</header>
<section style="padding:80px 50px;">
<ul class="nav nav-tabs nav-line">
{{# nav}}
<li class="{{#active}}active{{/active}}"><a href="#{{name}}" data-toggle="tab"><strong>{{name}}</strong></a></li>
{{/ nav}}
</ul>
<div class="tab-content nopadding noborder">
{{# group}}
<div class="tab-pane {{# active}}active{{/ active}}" id="{{name}}">
{{# list}}
<div class="panel panel-info">
<div class="panel-heading">
<div class="panel-btns" style="display: none;">
<a href="" class="panel-minimize tooltips" data-toggle="tooltip" title="" data-original-title="Minimize Panel"><i class="fa fa-minus"></i></a>
<a href="" class="panel-close tooltips" data-toggle="tooltip" title="" data-original-title="Close Panel"><i class="fa fa-times"></i></a>
</div><!-- panel-btns -->
<h3 class="panel-title">接口地址:{{domain}}{{url}}</h3>
</div>
<div class="panel-body">
<div class="media">
<div class="media-body">
<h4 >调用方式:</h4>
<p class="media-desc">{{method}}:{{#isJsonRaw}}json 文本提交{{/isJsonRaw}}</p>
</div>
</div>
<h4 class="mt5">输入参数:</h4>
<table class="table table-info mb30">
<thead>
<tr>
<th>属性名</th>
<th>属性类型</th>
<th>正则匹配</th>
<th>长度限制</th>
<th>说明</th>
</tr>
</thead>
<tbody>
{{# params}}
<tr>
<td>{{name}}</td>
<td>{{type}}</td>
<td>{{reg}}</td>
<td>{{minLength}}-{{maxLength}}</td>
<td>{{message}}</td>
</tr>
{{/ params}}
</tbody>
</table>
<h4>接口返回:</h4>
<pre style="display:none">
</pre>
<button class="btn btn-success getRes" method="{{method}}" url="{{url}}">点击获取</button>
</div>
</div>
{{/ list}}
</div>
{{/ group}}
</div>
</section>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/custom.js"></script>
<script type="text/javascript">
var formatJson = function(json, options) {
var reg = null,
formatted = '',
pad = 0,
PADDING = ' '; // one can also use '\t' or a different number of spaces
// optional settings
options = options || {};
// remove newline where '{' or '[' follows ':'
options.newlineAfterColonIfBeforeBraceOrBracket = (options.newlineAfterColonIfBeforeBraceOrBracket === true) ? true : false;
// use a space after a colon
options.spaceAfterColon = (options.spaceAfterColon === false) ? false : true;
// begin formatting...
// make sure we start with the JSON as a string
if (typeof json !== 'string') {
json = JSON.stringify(json);
}
// parse and stringify in order to remove extra whitespace
json = JSON.parse(json);
json = JSON.stringify(json);
// add newline before and after curly braces
reg = /([\{\}])/g;
json = json.replace(reg, '\r\n$1\r\n');
// add newline before and after square brackets
reg = /([\[\]])/g;
json = json.replace(reg, '\r\n$1\r\n');
// add newline after comma
reg = /(\,)/g;
json = json.replace(reg, '$1\r\n');
// remove multiple newlines
reg = /(\r\n\r\n)/g;
json = json.replace(reg, '\r\n');
// remove newlines before commas
reg = /\r\n\,/g;
json = json.replace(reg, ',');
// optional formatting...
if (!options.newlineAfterColonIfBeforeBraceOrBracket) {
reg = /\:\r\n\{/g;
json = json.replace(reg, ':{');
reg = /\:\r\n\[/g;
json = json.replace(reg, ':[');
}
if (options.spaceAfterColon) {
reg = /\:/g;
json = json.replace(reg, ': ');
}
$.each(json.split('\r\n'), function(index, node) {
var i = 0,
indent = 0,
padding = '';
if (node.match(/\{$/) || node.match(/\[$/)) {
indent = 1;
} else if (node.match(/\}/) || node.match(/\]/)) {
if (pad !== 0) {
pad -= 1;
}
} else {
indent = 0;
}
for (i = 0; i < pad; i++) {
padding += PADDING;
}
formatted += padding + node + '\r\n';
pad += indent;
});
return formatted;
};
$(function(){
$(".panel-minimize").click();
$(".getRes").click(function(){
var panel = $(this).prev().show('fast');
$.ajax({
url:$(this).attr("url"),
type:$(this).attr("method"),
dataType:'json'
}).done(function(data){
var json = formatJson(data);
panel.html(json);
});
});
})
</script>
</body>
</html>
... ...